pekko/akka-docs/src/test/scala/docs/CompileOnlySpec.scala

14 lines
303 B
Scala
Raw Normal View History

/*
2018-01-04 17:26:29 +00:00
* Copyright (C) 2009-2018 Lightbend Inc. <https://www.lightbend.com>
*/
package docs
trait CompileOnlySpec {
/**
* Given a block of code... does NOT execute it.
* Useful when writing code samples in tests, which should only be compiled.
*/
2017-10-06 10:30:28 +02:00
def compileOnlySpec(body: Unit) = ()
}