Law2ZIO

abstract class Law2ZIO[-CapsF[_[_]], -Caps[_], -R](label: String) extends Contravariant[CapsF, Caps, R]

Constructs a law from an effectual function taking two parameters.

class Contravariant[CapsF, Caps, R]
class Object
trait Matchable
class Any
Law2ZIO[CapsF, Caps, R]

Value members

Abstract methods

def apply[F[_] : CapsF, A : Caps, B : Caps](fa: F[A], fb: F[B]): URIO[R, TestResult]

Concrete methods

final def run[R1 <: R, F[_] : CapsF, A : Caps](genF: GenF[R1, F], gen: Gen[R1, A])(implicit evidence$73: CapsF[F], evidence$74: Caps[A], trace: Trace): ZIO[R1, Nothing, 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.

Inherited methods

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

Inherited from:
Contravariant