test

oxygen.predef.test
object test

Attributes

Experimental
true
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
test.type

Members list

Exports

Defined exports

final type Alignment = Alignment
Exported from core$
final val Arguments: Arguments
Exported from Assertion
final type Arguments = Arguments
Exported from Assertion$
final val Assertion: Assertion
Exported from test
final type Assertion = Assertion
Exported from test
final val Chunk: Chunk
Exported from zio
final type Chunk = Chunk
Exported from zio
final val Clock: Clock
Exported from zio
final type Clock = Clock
Exported from zio$
final type DurationOps = DurationOps
Exported from zio$
final type DurationSyntax = DurationSyntax
Exported from zio$
final type EitherNel = EitherNel
Exported from types$package$
final val Enum: Enum
Exported from core
final type Enum = [E <: Enum[E]] =>> Enum[E]
Exported from core
lazy val EnvironmentTag: Tag.type
Exported from zio
final type EnvironmentTag = Tag
Exported from reflect
final val FiberRef: FiberRef
Exported from zio
final type FiberRef = FiberRef
Exported from zio
final val FiberRefModification: FiberRefModification
Exported from zio
final type FiberRefModification = FiberRefModification
Exported from zio$
final val FiberRefModificationR: FiberRefModificationR
Exported from zio
final type FiberRefModificationR = FiberRefModificationR
Exported from zio
final type IO = IO
Exported from package$
final val IndentedString: IndentedString
Exported from core
final type IndentedString = IndentedString
Exported from core$
final val JarUtils: JarUtils
Exported from zio
final type Layer = Layer
Exported from package$
final val LogLevel: LogLevel
Exported from zio
final type LogLevel = LogLevel
Exported from zio$
final val Logger: Logger
Exported from zio
final type MirroredElemLabels = MirroredElemLabels
Exported from Mirror
final type MirroredLabel = MirroredLabel
Exported from Mirror
final val NonEmptyList: NonEmptyList
Exported from core
final type NonEmptyList = NonEmptyList
Exported from core
final val OxygenEnv: OxygenEnv
Exported from zio
final val OxygenSpec: OxygenSpec
Exported from test
final type OxygenSpec = OxygenSpec
Exported from test
Exported from test
final type RIO = RIO
Exported from package$
final type RLayer = RLayer
Exported from package$
final val Random: Random
Exported from zio
final type Random = Random
Exported from zio$
final val Ref: Ref
Exported from zio
final type Ref = Ref
Exported from zio
final val Schedule: Schedule
Exported from zio
final type Schedule = Schedule
Exported from zio
final val Scope: Scope
Exported from zio
final type Scope = Scope
Exported from zio$
final val SourceLocation: SourceLocation
Exported from stacktracer
final type SourceLocation = SourceLocation
Exported from stacktracer
final val StringCodec: StringCodec
Exported from core
final type StringCodec = StringCodec
Exported from typeclass
final val StringDecoder: StringDecoder
Exported from core
final type StringDecoder = StringDecoder
Exported from typeclass
final val StringEncoder: StringEncoder
Exported from core
final type StringEncoder = StringEncoder
Exported from typeclass
final val System: System
Exported from zio
final type System = System
Exported from zio$
final val Tag: Tag
Exported from zio
final type Tag = Tag
Exported from package$
final type Task = Task
Exported from package$
final type TaskLayer = TaskLayer
Exported from package$
final val Telemetry: Telemetry
Exported from zio
final val TypeTag: TypeTag
Exported from core
final type TypeTag = TypeTag
Exported from core
final type UIO = UIO
Exported from package$
final type URIO = URIO
Exported from package$
final type URLayer = URLayer
Exported from package$
final val Unapply: Unapply
Exported from core
final type Unapply = Unapply
Exported from core
final val ZIO: ZIO
Exported from zio
final type ZIO = ZIO
Exported from zio
final val ZIOAspectAtLeastR: ZIOAspectAtLeastR
Exported from zio
final type ZIOAspectAtLeastR = ZIOAspectAtLeastR
Exported from zioAspectHelpers$package$
final val ZIOAspectPoly: ZIOAspectPoly
Exported from zio
final type ZIOAspectPoly = ZIOAspectPoly
Exported from zio$
final val ZLayer: ZLayer
Exported from zio
final type ZLayer = ZLayer
Exported from zio
final val Zip: Zip
Exported from core
final type Zip = Zip
Exported from typeclass
val anything: Assertion[Any]
Exported from Assertion

Makes a new assertion that always succeeds.

Makes a new assertion that always succeeds.

Attributes

def assertSeq[A](assertions: Assertion[A]*): Assertion[Seq[A]]
Exported from OAssertions
def contains[A](element: A): Assertion[Iterable[A]]
Exported from Assertion

Makes a new assertion that requires an Iterable contain the specified element. See Assertion.exists if you want to require an Iterable to contain an element satisfying an assertion.

Makes a new assertion that requires an Iterable contain the specified element. See Assertion.exists if you want to require an Iterable to contain an element satisfying an assertion.

Attributes

def containsCause[E](cause: Cause[E]): Assertion[Cause[E]]
Exported from Assertion

Makes a new assertion that requires a Cause contain the specified cause.

Makes a new assertion that requires a Cause contain the specified cause.

Attributes

def diesWithA[E : ClassTag]: Assertion[Exit[Any, Any]]
Exported from Assertion

Makes a new assertion that requires an exit value to die with an instance of given type (or its subtype).

Makes a new assertion that requires an exit value to die with an instance of given type (or its subtype).

Attributes

def endsWith[A](suffix: Seq[A]): Assertion[Seq[A]]
Exported from Assertion

Makes a new assertion that requires a given string to end with the specified suffix.

Makes a new assertion that requires a given string to end with the specified suffix.

Attributes

final def equalTo[A](expected: A): Assertion[A]
Exported from AssertionVariants

Makes a new assertion that requires a value equal the specified value.

Makes a new assertion that requires a value equal the specified value.

Attributes

def equalTo_filteredDiff[A](expected: A): Assertion[A]
Exported from OAssertions
def equalTo_unfilteredDiff[A](expected: A): Assertion[A]
Exported from OAssertions
def exists[A](assertion: Assertion[A]): Assertion[Iterable[A]]
Exported from Assertion

Makes a new assertion that requires an Iterable contain an element satisfying the given assertion. See Assertion.contains if you only need an Iterable to contain a given element.

Makes a new assertion that requires an Iterable contain an element satisfying the given assertion. See Assertion.contains if you only need an Iterable to contain a given element.

Attributes

def fails[E](assertion: Assertion[E]): Assertion[Exit[E, Any]]
Exported from Assertion

Makes a new assertion that requires an exit value to fail.

Makes a new assertion that requires an exit value to fail.

Attributes

def failsCause[E](assertion: Assertion[Cause[E]]): Assertion[Exit[E, Any]]
Exported from Assertion

Makes a new assertion that requires an exit value to fail with a cause that meets the specified assertion.

Makes a new assertion that requires an exit value to fail with a cause that meets the specified assertion.

Attributes

def failsWithA[E : ClassTag]: Assertion[Exit[Any, Any]]
Exported from Assertion

Makes a new assertion that requires the expression to fail with an instance of given type (or its subtype).

Makes a new assertion that requires the expression to fail with an instance of given type (or its subtype).

Attributes

def forall[A](assertion: Assertion[A]): Assertion[Iterable[A]]
Exported from Assertion

Makes a new assertion that requires an Iterable contain only elements satisfying the given assertion.

Makes a new assertion that requires an Iterable contain only elements satisfying the given assertion.

Attributes

def hasAtLeastOneOf[A](other: Iterable[A]): Assertion[Iterable[A]]
Exported from Assertion

Makes a new assertion that requires an Iterable contain at least one of the specified elements.

Makes a new assertion that requires an Iterable contain at least one of the specified elements.

Attributes

def hasAtMostOneOf[A](other: Iterable[A]): Assertion[Iterable[A]]
Exported from Assertion

Makes a new assertion that requires an Iterable contain at most one of the specified elements.

Makes a new assertion that requires an Iterable contain at most one of the specified elements.

Attributes

def hasField[A, B](name: String, proj: A => B, assertion: Assertion[B]): Assertion[A]
Exported from Assertion

Makes a new assertion that focuses in on a field in a case class.

Makes a new assertion that focuses in on a field in a case class.

hasField("age", _.age, within(0, 10))

Attributes

def hasFirst[A](assertion: Assertion[A]): Assertion[Iterable[A]]
Exported from Assertion

Makes a new assertion that requires an Iterable to contain the first element satisfying the given assertion.

Makes a new assertion that requires an Iterable to contain the first element satisfying the given assertion.

Attributes

def hasKey[K, V](key: K): Assertion[Map[K, V]]
Exported from Assertion

Makes a new assertion that requires a Map to have the specified key.

Makes a new assertion that requires a Map to have the specified key.

Attributes

def hasKey[K, V](key: K, assertion: Assertion[V]): Assertion[Map[K, V]]
Exported from Assertion

Makes a new assertion that requires a Map to have the specified key with value satisfying the specified assertion.

Makes a new assertion that requires a Map to have the specified key with value satisfying the specified assertion.

Attributes

def hasKeys[K, V](assertion: Assertion[Iterable[K]]): Assertion[Map[K, V]]
Exported from Assertion

Makes a new assertion that requires a Map have keys satisfying the specified assertion.

Makes a new assertion that requires a Map have keys satisfying the specified assertion.

Attributes

def hasLast[A](assertion: Assertion[A]): Assertion[Iterable[A]]
Exported from Assertion

Makes a new assertion that requires an Iterable to contain the last element satisfying the given assertion.

Makes a new assertion that requires an Iterable to contain the last element satisfying the given assertion.

Attributes

def hasNoneOf[A](other: Iterable[A]): Assertion[Iterable[A]]
Exported from Assertion

Makes a new assertion that requires an Iterable contain none of the specified elements.

Makes a new assertion that requires an Iterable contain none of the specified elements.

Attributes

def hasOneOf[A](other: Iterable[A]): Assertion[Iterable[A]]
Exported from Assertion

Makes a new assertion that requires an Iterable contain exactly one of the specified elements.

Makes a new assertion that requires an Iterable contain exactly one of the specified elements.

Attributes

def hasSameElements[A](other: Iterable[A]): Assertion[Iterable[A]]
Exported from Assertion

Makes a new assertion that requires an Iterable to have the same elements as the specified Iterable, though not necessarily in the same order.

Makes a new assertion that requires an Iterable to have the same elements as the specified Iterable, though not necessarily in the same order.

Attributes

def hasSameElementsDistinct[A](other: Iterable[A]): Assertion[Iterable[A]]
Exported from Assertion

Makes a new assertion that requires an Iterable to have the same distinct elements as the other Iterable, though not necessarily in the same order.

Makes a new assertion that requires an Iterable to have the same distinct elements as the other Iterable, though not necessarily in the same order.

Attributes

def hasSize[A](assertion: Assertion[Int]): Assertion[Iterable[A]]
Exported from Assertion

Makes a new assertion that requires the size of an Iterable be satisfied by the specified assertion.

Makes a new assertion that requires the size of an Iterable be satisfied by the specified assertion.

Attributes

def hasSubset[A](other: Iterable[A]): Assertion[Iterable[A]]
Exported from Assertion

Makes a new assertion that requires the specified Iterable to be a subset of the other Iterable.

Makes a new assertion that requires the specified Iterable to be a subset of the other Iterable.

Attributes

def hasValues[K, V](assertion: Assertion[Iterable[V]]): Assertion[Map[K, V]]
Exported from Assertion

Makes a new assertion that requires a Map have values satisfying the specified assertion.

Makes a new assertion that requires a Map have values satisfying the specified assertion.

Attributes

def isCase[Sum, Proj](termName: String, term: Sum => Option[Proj], assertion: Assertion[Proj]): Assertion[Sum]
Exported from Assertion

Makes a new assertion that requires the sum type be a specified term.

Makes a new assertion that requires the sum type be a specified term.

isCase("Some", Some.unapply, anything)

Attributes

val isDistinct: Assertion[Iterable[Any]]
Exported from Assertion

Makes a new assertion that requires an Iterable is distinct.

Makes a new assertion that requires an Iterable is distinct.

Attributes

val isEmpty: Assertion[Iterable[Any]]
Exported from Assertion

Makes a new assertion that requires an Iterable to be empty.

Makes a new assertion that requires an Iterable to be empty.

Attributes

val isEmptyString: Assertion[String]
Exported from Assertion

Makes a new assertion that requires a given string to be empty.

Makes a new assertion that requires a given string to be empty.

Attributes

val isFailure: Assertion[Try[Any]]
Exported from Assertion

Makes a new assertion that requires a Try value is Failure.

Makes a new assertion that requires a Try value is Failure.

Attributes

def isFalse: Assertion[Boolean]
Exported from Assertion

Makes a new assertion that requires a value be false.

Makes a new assertion that requires a value be false.

Attributes

def isInterrupted: Assertion[Exit[Any, Any]]
Exported from Assertion

Makes a new assertion that requires an exit value to be interrupted.

Makes a new assertion that requires an exit value to be interrupted.

Attributes

def isJustInterrupted: Assertion[Exit[Any, Any]]
Exported from Assertion

Makes a new assertion that requires an exit value to be interrupted.

Makes a new assertion that requires an exit value to be interrupted.

Attributes

val isLeft: Assertion[Either[Any, Any]]
Exported from Assertion

Makes a new assertion that requires an Either is Left.

Makes a new assertion that requires an Either is Left.

Attributes

def isLeft[A](assertion: Assertion[A]): Assertion[Either[A, Any]]
Exported from Assertion

Makes a new assertion that requires a Left value satisfying a specified assertion.

Makes a new assertion that requires a Left value satisfying a specified assertion.

Attributes

def isNegative[A](implicit num: Numeric[A]): Assertion[A]
Exported from Assertion

Makes a new assertion that requires a numeric value is negative.

Makes a new assertion that requires a numeric value is negative.

Attributes

val isNonEmpty: Assertion[Iterable[Any]]
Exported from Assertion

Makes a new assertion that requires an Iterable to be non empty.

Makes a new assertion that requires an Iterable to be non empty.

Attributes

val isNonEmptyString: Assertion[String]
Exported from Assertion

Makes a new assertion that requires a given string to be non empty.

Makes a new assertion that requires a given string to be non empty.

Attributes

val isNone: Assertion[Option[Any]]
Exported from Assertion

Makes a new assertion that requires a None value.

Makes a new assertion that requires a None value.

Attributes

val isNull: Assertion[Any]
Exported from Assertion

Makes a new assertion that requires a null value.

Makes a new assertion that requires a null value.

Attributes

def isOneOf[A](values: Iterable[A]): Assertion[A]
Exported from Assertion

Makes a new assertion that requires a value to be equal to one of the specified values.

Makes a new assertion that requires a value to be equal to one of the specified values.

Attributes

def isPositive[A](implicit num: Numeric[A]): Assertion[A]
Exported from Assertion

Makes a new assertion that requires a numeric value is positive.

Makes a new assertion that requires a numeric value is positive.

Attributes

val isRight: Assertion[Either[Any, Any]]
Exported from Assertion

Makes a new assertion that requires an Either is Right.

Makes a new assertion that requires an Either is Right.

Attributes

def isRight[A](assertion: Assertion[A]): Assertion[Either[Any, A]]
Exported from Assertion

Makes a new assertion that requires a Right value satisfying a specified assertion.

Makes a new assertion that requires a Right value satisfying a specified assertion.

Attributes

val isSome: Assertion[Option[Any]]
Exported from Assertion

Makes a new assertion that requires an Option is Some.

Makes a new assertion that requires an Option is Some.

Attributes

def isSome[A](assertion: Assertion[A]): Assertion[Option[A]]
Exported from Assertion

Makes a new assertion that requires a Some value satisfying the specified assertion.

Makes a new assertion that requires a Some value satisfying the specified assertion.

Attributes

def isSorted[A](implicit ord: Ordering[A]): Assertion[Iterable[A]]
Exported from Assertion

Makes a new assertion that requires an Iterable is sorted.

Makes a new assertion that requires an Iterable is sorted.

Attributes

def isSortedReverse[A](implicit ord: Ordering[A]): Assertion[Iterable[A]]
Exported from Assertion

Makes a new assertion that requires an Iterable is sorted in reverse order.

Makes a new assertion that requires an Iterable is sorted in reverse order.

Attributes

val isSuccess: Assertion[Try[Any]]
Exported from Assertion

Makes a new assertion that requires a Try value is Success.

Makes a new assertion that requires a Try value is Success.

Attributes

def isSuccess[A](assertion: Assertion[A]): Assertion[Try[A]]
Exported from Assertion

Makes a new assertion that requires a Success value satisfying the specified assertion.

Makes a new assertion that requires a Success value satisfying the specified assertion.

Attributes

def isTrue: Assertion[Boolean]
Exported from Assertion

Makes a new assertion that requires a value be true.

Makes a new assertion that requires a value be true.

Attributes

val isUnit: Assertion[Unit]
Exported from Assertion

Makes a new assertion that requires the value be unit.

Makes a new assertion that requires the value be unit.

Attributes

def isZero[A](implicit num: Numeric[A]): Assertion[A]
Exported from Assertion

Makes a new assertion that requires a numeric value is zero.

Makes a new assertion that requires a numeric value is zero.

Attributes

def nonNegative[A](implicit num: Numeric[A]): Assertion[A]
Exported from Assertion

Makes a new assertion that requires a numeric value is non negative.

Makes a new assertion that requires a numeric value is non negative.

Attributes

def nonPositive[A](implicit num: Numeric[A]): Assertion[A]
Exported from Assertion

Makes a new assertion that requires a numeric value is non positive.

Makes a new assertion that requires a numeric value is non positive.

Attributes

def not[A](assertion: Assertion[A]): Assertion[A]
Exported from Assertion

Makes a new assertion that negates the specified assertion.

Makes a new assertion that negates the specified assertion.

Attributes

val nothing: Assertion[Any]
Exported from Assertion

Makes a new assertion that always fails.

Makes a new assertion that always fails.

Attributes

def seqsHaveSameSize[A]: Assertion[(Seq[A], Seq[A])]
Exported from OAssertions
def startsWith[A](prefix: Seq[A]): Assertion[Seq[A]]
Exported from Assertion

Makes a new assertion that requires a given sequence to start with the specified prefix.

Makes a new assertion that requires a given sequence to start with the specified prefix.

Attributes

def succeeds[A](assertion: Assertion[A]): Assertion[Exit[Any, A]]
Exported from Assertion

Makes a new assertion that requires an exit value to succeed.

Makes a new assertion that requires an exit value to succeed.

Attributes

def testSeqElements[A](test: (A, A) => Boolean): Assertion[(Seq[A], Seq[A])]
Exported from OAssertions
def throws[A](assertion: Assertion[Throwable]): Assertion[A]
Exported from Assertion

Makes a new assertion that requires the expression to throw.

Makes a new assertion that requires the expression to throw.

Attributes

def throwsA[E : ClassTag]: Assertion[Any]
Exported from Assertion

Makes a new assertion that requires the expression to throw an instance of given type (or its subtype).

Makes a new assertion that requires the expression to throw an instance of given type (or its subtype).

Attributes