Law1

zio.test.laws.ZLawsF2.Divariant.Law1
abstract class Law1[-CapsBothF[_[_, _]], -CapsLeft[_], -CapsRight[_]](label: String) extends Divariant[CapsBothF, CapsLeft, CapsRight, Any]

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

Attributes

Graph
Supertypes
class Divariant[CapsBothF, CapsLeft, CapsRight, Any]
class Object
trait Matchable
class Any
Self type
Law1[CapsBothF, CapsLeft, CapsRight]

Members list

Value members

Abstract methods

def apply[F[_, _] : CapsBothF, A : CapsLeft, B : CapsRight](fa: F[A, B]): TestResult

Concrete methods

final def run[R, F[_, _] : CapsBothF, A : CapsLeft, B : CapsRight](genF: GenF2[R, F], gen: Gen[R, B])(implicit evidence$20: CapsBothF[F], evidence$21: CapsLeft[A], evidence$22: CapsRight[B], 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,B] values given a generator of B values.

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

Attributes

Inherited methods

def +[CapsF1 <: ([x[_, _]] =>> CapsBothF[x]), CapsLeft1 <: (CapsLeft), CapsRight1 <: (CapsRight), R1](that: Divariant[CapsF1, CapsLeft1, CapsRight1, R1]): Divariant[CapsF1, CapsLeft1, CapsRight1, 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:
Divariant