FormS2StringContext

trait FormS2StringContext extends S2StringContext

Allow to use forms inside interpolated strings starting with s2 in order to build the specification content

trait S2StringContext
trait S2StringContext1
trait S2StringContextCreation
trait FragmentsFactory
class Object
trait Matchable
class Any
trait Forms
object Forms

Value members

Inherited methods

protected
def fragmentFactory: FragmentFactory
Inherited from
FragmentsFactory
def postProcessS2Fragments(fs: Fragments): Fragments

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

Inherited from
S2StringContextCreation

Inherited fields

final lazy
val FragmentFactory: FragmentFactory

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

Inherited from
S2StringContextCreation

Givens

Givens

given Conversion_T_Interpolated[T]: Conversion[T, Interpolated]

Inherited givens

given given_Conversion_Fragments_Interpolated: Conversion[Fragments, Interpolated]
Inherited from
S2StringContext
given given_Conversion_SpecStructure_Interpolated: Conversion[SpecStructure, Interpolated]
Inherited from
S2StringContext
given given_Conversion_SpecificationRef_Interpolated: Conversion[SpecificationRef, Interpolated]
Inherited from
S2StringContext
given given_Conversion_SpecificationStructure_Interpolated: Conversion[SpecificationStructure, Interpolated]
Inherited from
S2StringContext

Extensions

Inherited extensions

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

String interpolation for specs2 fragments

String interpolation for specs2 fragments

Inherited from
S2StringContextCreation

Implicits

Implicits

implicit
def formIsInterpolated(f: => Form): Interpolated

Inherited 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

Inherited from
S2StringContext
implicit inline
def asResultIsInterpolated[R](inline r: => R)(using evidence$3: AsResult[R]): Interpolated
Inherited from
S2StringContext1
implicit inline
def fragmentIsInterpolated(inline f: => Fragment): Interpolated
Inherited from
S2StringContext1
implicit inline
def stepParserIsInterpolatedFragment[R](f: StepParser[R])(using evidence$4: AsResult[R]): Interpolated
Inherited from
S2StringContext1
implicit
def stringIsInterpolated(s: => String): Interpolated
Inherited from
S2StringContext
implicit inline
def stringResultIsInterpolated[R](inline f: String => R)(using evidence$2: AsResult[R]): Interpolated
Inherited from
S2StringContext1