Fragments

org.specs2.specification.core.Fragments
See theFragments companion object
case class Fragments(contents: AsyncStream[Fragment])

Fragments of a specification

It is implemented as an async Producer[Fragment] in order to produce fragments dynamically if necessary

Attributes

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

Members list

Value members

Concrete methods

def append(other: Fragment): Fragments

append one or several fragments

append one or several fragments

Attributes

def append(others: Seq[Fragment]): Fragments
def append(others: Fragments): Fragments
def append(other: AsyncStream[Fragment]): Fragments
def appendLazy(other: => Fragment): Fragments
def collect[A](predicate: PartialFunction[Fragment, A]): AsyncStream[A]

when 2 Text fragments are contiguous append them together to only make one

when 2 Text fragments are contiguous append them together to only make one

Attributes

def examples: Action[List[Fragment]]

run the process to filter all examples

run the process to filter all examples

Attributes

def filter(predicate: Fragment => Boolean): Fragments
def flatMap(f: Fragment => AsyncStream[Fragment]): Fragments
def fragments: Action[List[Fragment]]

run the process to get all fragments

run the process to get all fragments

Attributes

def fragmentsList(ee: ExecutionEnv): List[Fragment]

run the process to get all fragments as a list

run the process to get all fragments as a list

Attributes

def linkReferences: AsyncStream[SpecificationRef]

run the process to get all specification link references

run the process to get all specification link references

Attributes

def mapFragments(f: List[Fragment] => List[Fragment]): Fragments
def markers: Action[List[Fragment]]

run the process to filter all markers

run the process to filter all markers

Attributes

def prepend(other: Fragment): Fragments

prepend one or several fragments to this process

prepend one or several fragments to this process

Attributes

def prepend(others: Fragments): Fragments
def prepend(others: Seq[Fragment]): Fragments
def prepend(other: AsyncStream[Fragment]): Fragments
def prependLazy(other: => Fragment): Fragments
def referenced: Action[List[Fragment]]

run the process to get all specification references as Fragments

run the process to get all specification references as Fragments

Attributes

def seeReferences: AsyncStream[SpecificationRef]

run the process to get all specification see references

run the process to get all specification see references

Attributes

run the process to get all specification references

run the process to get all specification references

Attributes

strip the margin of all examples

strip the margin of all examples

Attributes

def stripMargin(margin: Char): Fragments

strip the margin of all examples

strip the margin of all examples

Attributes

def tags: Producer[Action, NamedTag]

run the process to collect all tags

run the process to collect all tags

Attributes

def texts: Action[List[Fragment]]

run the process to filter all texts

run the process to filter all texts

Attributes

def updateFragments(update: List[Fragment] => Fragments): Fragments
def when(condition: => Boolean): Fragments

filter, map or flatMap the fragments

filter, map or flatMap the fragments

Attributes

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product