Law1

zio.test.laws.ZLawsF$.Invariant$.Law1
abstract class Law1[-CapsF[_[_]], -Caps[_]](label: String) extends Invariant[CapsF, Caps, Any]

Constructs a law from a pure function taking a single parameter.

Attributes

Graph
Supertypes
class Invariant[CapsF, Caps, Any]
class Object
trait Matchable
class Any
Self type
Law1[CapsF, Caps]

Members list

Concise view

Value members

Abstract methods

def apply[F[_] : CapsF, A : Caps](fa: F[A]): TestResult

Concrete methods

final def run[R, F[_] : CapsF, A : Caps](genF: GenF[R, F], gen: Gen[R, A])(implicit evidence$91: CapsF[F], evidence$92: Caps[A], trace: Trace): URIO[R, TestResult]

Test that values of type F[+_] satisfy the laws using the specified function to construct a generator of F[A] values given a generator of A values.

Test that values of type F[+_] satisfy the laws using the specified function to construct a generator of F[A] values given a generator of A values.

Attributes

Inherited methods

def +[CapsF1 <: ([x[_]] =>> CapsF[x]), Caps1 <: (Caps), R1](that: Invariant[CapsF1, Caps1, R1]): Invariant[CapsF1, 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:
Invariant