S2StringContext

org.specs2.specification.create.S2StringContext
See theS2StringContext companion object

These implicit methods declare which kind of object can be interpolated in a s2 string;

  • a function using the previous text and returning Fragments
  • specification references
  • examples using the Env, arguments, the statistics repository, the command line arguments
  • other specifications
  • strings
  • fragments

Attributes

Companion
object
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes

Members list

Type members

Classlikes

Attributes

Supertypes
class Conversion[Fragments, Interpolated]
class Object
trait Matchable
class Any
Self type

Attributes

Supertypes
class Conversion[SpecStructure, Interpolated]
class Object
trait Matchable
class Any
Self type

Attributes

Supertypes
class Conversion[SpecificationRef, Interpolated]
class Object
trait Matchable
class Any
Self type

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type

Value members

Inherited methods

Attributes

Inherited from:
FragmentsFactory

this function is exposed so that it can be overridden with side-effects when using s2 strings in mutable specs

this function is exposed so that it can be overridden with side-effects when using s2 strings in mutable specs

Attributes

Inherited from:
S2StringContextCreation

Givens

Inherited givens

The FragmentFactory has to be passed as an implicit in order to be inlined in macros

The FragmentFactory has to be passed as an implicit in order to be inlined in macros

Attributes

Inherited from:
S2StringContextCreation

Extensions

Inherited extensions

extension (sc: StringContext)(using factory: FragmentFactory)
inline def s2(inline variables: Interpolated*): Fragments

String interpolation for specs2 fragments

String interpolation for specs2 fragments

Attributes

Inherited from:
S2StringContextCreation

Implicits

Implicits

implicit inline def asExecutionIsInterpolated[R](inline r: => R)(using evidence$1: AsExecution[R], inline factory: FragmentFactory): Interpolated

create an example based on an execution

create an example based on an execution

Attributes

implicit def stringIsInterpolated(s: => String): Interpolated

Inherited implicits

implicit inline def asResultIsInterpolated[R](inline r: => R)(using evidence$3: AsResult[R]): Interpolated

Attributes

Inherited from:
S2StringContext1 (hidden)
implicit inline def fragmentIsInterpolated(inline f: => Fragment): Interpolated

Attributes

Inherited from:
S2StringContext1 (hidden)
implicit inline def stepParserIsInterpolatedFragment[R](f: StepParser[R])(using evidence$4: AsResult[R]): Interpolated

Attributes

Inherited from:
S2StringContext1 (hidden)
implicit inline def stringResultIsInterpolated[R](inline f: String => R)(using evidence$2: AsResult[R]): Interpolated

Attributes

Inherited from:
S2StringContext1 (hidden)