Annotations

zio.test.Annotations
See theAnnotations companion object
trait Annotations extends Serializable

The Annotations trait provides access to an annotation map that tests can add arbitrary annotations to. Each annotation consists of a string identifier, an initial value, and a function for combining two values. Annotations form monoids and you can think of Annotations as a more structured logging service or as a super polymorphic version of the writer monad effect.

Attributes

Companion
object
Source
Annotations.scala
Graph
Supertypes
trait Serializable
class Object
trait Matchable
class Any
Known subtypes
class Test

Members list

Value members

Abstract methods

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

Attributes

Source
Annotations.scala
def get[V](key: TestAnnotation[V])(implicit trace: Trace): UIO[V]

Attributes

Source
Annotations.scala
def supervisedFibers(implicit trace: Trace): UIO[SortedSet[Runtime[Any, Any]]]

Attributes

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

Attributes

Source
Annotations.scala