Snippets

org.specs2.execute.Snippets
See theSnippets companion trait
object Snippets extends Snippets

Attributes

Companion
trait
Graph
Supertypes
trait Snippets
class Object
trait Matchable
class Any
Self type
Snippets.type

Members list

Value members

Concrete methods

def create[T](code: Expr[() => T], params: Expr[SnippetParams[T]])(using quotes: Quotes)(using t: Type[T], t1: Type[() => T]): Expr[Snippet[T]]
def createSnippet[T](expression: String, code: () => T, params: SnippetParams[T]): Snippet[T]
def termFullName[T](e: Expr[T])(using quotes: Quotes): Expr[String]
def typeFullName[T](using quotes: Quotes)(using t: Type[T]): Expr[String]
def typeSimpleName[T](using quotes: Quotes)(using t: Type[T]): Expr[String]

Inherited methods

inline def fullName[T]: String

Attributes

Inherited from:
Snippets
inline def simpleName[T]: String

Attributes

Inherited from:
Snippets
inline def snippet[T](inline code: => T)(using params: SnippetParams[T]): Snippet[T]

Attributes

Inherited from:
Snippets
inline def termName[T](inline t: => T): String

Attributes

Inherited from:
Snippets

Givens

Inherited givens

implicit parameters selected for the creation of Snippets

implicit parameters selected for the creation of Snippets

Attributes

Inherited from:
Snippets

Extensions

Inherited extensions

extension [T](s: Snippet[T])
def eval: Snippet[T]

implicit function modify the Snippet parameters

implicit function modify the Snippet parameters

Attributes

Inherited from:
Snippets
def offsetIs(offset: Int): Snippet[T]

implicit function modify the Snippet parameters

implicit function modify the Snippet parameters

Attributes

Inherited from:
Snippets
def promptIs(p: String): Snippet[T]

implicit function modify the Snippet parameters

implicit function modify the Snippet parameters

Attributes

Inherited from:
Snippets
def set(trimExpression: String => String, cutter: String => String, asCode: (String, String) => String, prompt: String => String): Snippet[T]

implicit function modify the Snippet parameters

implicit function modify the Snippet parameters

Attributes

Inherited from:
Snippets
extension [T, R](s: Snippet[T])(using evidence$1: AsResult[R])
def check(f: T => R): Snippet[T]

Attributes

Inherited from:
Snippets
extension [T](s: Snippet[T])(using evidence$2: AsResult[T])
def checkOk: Snippet[T]

Attributes

Inherited from:
Snippets