Snippet

org.specs2.execute.Snippet
See theSnippet companion object
case class Snippet[T](code: () => T, codeExpression: Option[String], params: SnippetParams[T])

Captured snippet of code with: a value of type T, a string representing the expression, captured by a macro, some evaluation and display parameters

Attributes

Companion
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def mustBeVerified: Boolean
def show(expression: String): String

show the snippet either taking the expression captured by the macro or another expression passed by the caller (for example in an interpolated s2 string when -Yrangepos is disabled)

show the snippet either taking the expression captured by the macro or another expression passed by the caller (for example in an interpolated s2 string when -Yrangepos is disabled)

Attributes

def verify: Result

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product

Concrete fields

lazy val execute: T
lazy val result: String
lazy val showResult: String