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 cutter function to remove part which must not be shown
  • the asCode function to render the resulting text
  • the prompt function to possibly display the evaluated result with a prompt
  • the eval boolean indicating if a snippet must be evaluated
  • the verify function checking the result

Attributes

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

Members list

Value members

Concrete methods

def check[R](f: T => R)(using evidence$3: AsResult[R]): SnippetParams[T]
def offsetIs(offset: Int): SnippetParams[T]

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product