Invariant

zio.test.laws.ZLawsF.Invariant
See theInvariant companion object
abstract class Invariant[-CapsF[_[_]], -Caps[_], -R]

ZLawsF for invariant type constructors.

Attributes

Companion
object
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
class Law1[CapsF, Caps]
class Law1ZIO[CapsF, Caps, R]
class Law2[CapsF, Caps]
class Law2ZIO[CapsF, Caps, R]
class Law3[CapsF, Caps]
class Law3ZIO[CapsF, Caps, R]
Show all
Self type
Invariant[CapsF, Caps, R]

Members list

Value members

Abstract methods

def run[R1 <: R, F[_] : CapsF, A : Caps](genF: GenF[R1, F], gen: Gen[R1, A])(implicit evidence$1: CapsF[F], evidence$2: 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.

Attributes

Concrete methods

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