SnippetParams
org.specs2.execute.SnippetParams
case class SnippetParams[T](trimExpression: String => String = ..., cutter: String => String = ..., asCode: (String, String) => String = ..., prompt: String => String = ..., evalCode: Boolean = ..., verify: Option[T => Result] = ...)
Evaluation and display parameters for a Snippet.
It is possible to change:
- the function that's trimming the expression from newlines or accolades
- the
cutterfunction to remove part which must not be shown - the
asCodefunction to render the resulting text - the
promptfunction to possibly display the evaluated result with a prompt - the
evalboolean indicating if a snippet must be evaluated - the
verifyfunction checking the result
Attributes
- Graph
-
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass Any
Members list
In this article