Annotations

zio.test.Annotations$
See theAnnotations companion trait

Attributes

Companion:
trait
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Concise view

Type members

Classlikes

final case class Test(ref: Atomic[TestAnnotationMap]) extends Annotations

Attributes

Graph
Supertypes
trait Product
trait Equals
class Object
trait Matchable
class Any

Value members

Concrete methods

def annotate[V](key: TestAnnotation[V], value: V)(implicit trace: Trace): UIO[Unit]

Accesses an Annotations instance in the environment and appends the specified annotation to the annotation map.

Accesses an Annotations instance in the environment and appends the specified annotation to the annotation map.

Attributes

def get[V](key: TestAnnotation[V])(implicit trace: Trace): UIO[V]

Accesses an Annotations instance in the environment and retrieves the annotation of the specified type, or its default value if there is none.

Accesses an Annotations instance in the environment and retrieves the annotation of the specified type, or its default value if there is none.

Attributes

def supervisedFibers(implicit trace: Trace): UIO[SortedSet[Runtime[Any, Any]]]

Returns a set of all fibers in this test.

Returns a set of all fibers in this test.

Attributes

def withAnnotation[R, E](zio: ZIO[R, TestFailure[E], TestSuccess])(implicit trace: Trace): ZIO[R, TestFailure[E], TestSuccess]

Accesses an Annotations instance in the environment and executes the specified effect with an empty annotation map, returning the annotation map along with the result of execution.

Accesses an Annotations instance in the environment and executes the specified effect with an empty annotation map, returning the annotation map along with the result of execution.

Attributes

Concrete fields

Constructs a new Annotations service.

Constructs a new Annotations service.

Attributes