Annotations

Companion:
class
class Object
trait Matchable
class Any

Type members

Classlikes

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

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.

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.

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.

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.

Concrete fields

Constructs a new Annotations service.

Constructs a new Annotations service.