zio
package zio
- Alphabetic
- By Inheritance
- zio
- EitherCompat
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Package Members
- package test
_ZIO Test_ is a featherweight testing library for effectful programs.
_ZIO Test_ is a featherweight testing library for effectful programs.
The library imagines every spec as an ordinary immutable value, providing tremendous potential for composition. Thanks to tight integration with ZIO, specs can use resources (including those requiring disposal), have well- defined linear and parallel semantics, and can benefit from a host of ZIO combinators.
import zio.test._ import zio.clock.nanoTime import Predicate.gt object MyTest extends DefaultRunnableSpec { suite("clock") { testM("time is non-zero") { assertM(nanoTime, gt(0)) } } }
Type Members
- type Canceler = UIO[_]
- type FiberId = Long
- type IO[+E, +A] = ZIO[Any, E, A]
- type Managed[+E, +A] = ZManaged[Any, E, A]
- type Queue[A] = ZQueue[Any, Nothing, Any, Nothing, A, A]
- type RIO[-R, +A] = ZIO[R, Throwable, A]
- type Schedule[-A, +B] = ZSchedule[Any, A, B]
- type Task[+A] = ZIO[Any, Throwable, A]
- type UIO[+A] = ZIO[Any, Nothing, A]
- type URIO[-R, +A] = ZIO[R, Nothing, A]