zio
package zio
- Alphabetic
- By Inheritance
- zio
- VersionSpecific
- PlatformSpecific
- EitherCompat
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
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 Assertion.isGreaterThan object MyTest extends DefaultRunnableSpec { def spec = suite("clock")( testM("time is non-zero") { assertM(nanoTime)(isGreaterThan(0)) } ) }
Type Members
- type Canceler[-R] = ZIO[R, Nothing, Any]
- 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 RManaged[-R, +A] = ZManaged[R, Throwable, A]
- type TagType = LightTypeTag
- Definition Classes
- VersionSpecific
- type TaggedType[A] = Tag[A]
- Definition Classes
- VersionSpecific
- type Task[+A] = ZIO[Any, Throwable, A]
- type TaskManaged[+A] = ZManaged[Any, Throwable, A]
- type UIO[+A] = ZIO[Any, Nothing, A]
- type UManaged[+A] = ZManaged[Any, Nothing, A]
- type URIO[-R, +A] = ZIO[R, Nothing, A]
- type URManaged[-R, +A] = ZManaged[R, Nothing, A]
- type ZEnv = Clock with Console with System with Random
- Definition Classes
- PlatformSpecific
Value Members
- object ZEnv
- Definition Classes
- PlatformSpecific