org.specs2.specification.create.S2StringContext
See theS2StringContext companion object
trait S2StringContext
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
- Known subtypes
-
trait SpecificationCreationtrait SpecificationCreationtrait SpecificationLikeclass Specificationtrait SpecificationLiketrait SpecificationLiketrait SpecificationLikeclass Specificationclass Specificationclass SpecificationShow all
Members list
Type members
Classlikes
object given_Conversion_Fragments_Interpolated extends Conversion[Fragments, Interpolated]
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
object given_Conversion_SpecStructure_Interpolated extends Conversion[SpecStructure, Interpolated]
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
object given_Conversion_SpecificationRef_Interpolated extends Conversion[SpecificationRef, Interpolated]
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
object given_Conversion_SpecificationStructure_Interpolated extends Conversion[SpecificationStructure, Interpolated]
Attributes
- Supertypes
-
class Objecttrait Matchableclass 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
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)
String interpolation for specs2 fragments
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
Inherited implicits
implicit inline def asResultIsInterpolated[R](inline r: => R)(using evidence$3: AsResult[R]): Interpolated
Attributes
- Inherited from:
- S2StringContext1 (hidden)
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)
In this article