Law2ZIO

zio.test.laws.ZLaws$.Law2ZIO
abstract class Law2ZIO[-Caps[_], -R](label: String) extends ZLaws[Caps, R]

Constructs a law from an effectual function taking two parameters.

Attributes

Graph
Supertypes
class ZLaws[Caps, R]
class Object
trait Matchable
class Any
Self type
Law2ZIO[Caps, R]

Members list

Concise view

Value members

Abstract methods

def apply[A : Caps](a1: A, a2: A): URIO[R, TestResult]

Concrete methods

final def run[R1 <: R, A : Caps](gen: Gen[R1, A])(implicit evidence$10: Caps[A], trace: Trace): ZIO[R1, Nothing, TestResult]

Test that values of type A satisfy the laws using the specified generator.

Test that values of type A satisfy the laws using the specified generator.

Attributes

Inherited methods

def +[Caps1 <: (Caps), R1 <: R](that: ZLaws[Caps1, R1]): ZLaws[Caps1, R1]

Combine these laws with the specified laws to produce a set of laws that require both sets of laws to be satisfied.

Combine these laws with the specified laws to produce a set of laws that require both sets of laws to be satisfied.

Attributes

Inherited from:
ZLaws