GenNumericPoly

zio.test.poly.GenNumericPoly
See theGenNumericPoly companion trait

Attributes

Companion
trait
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

def apply[A](gen: Gen[Any, A], num: Numeric[A]): GenNumericPoly

Constructs an instance of GenIntegralPoly using the specified Gen and Numeric instances, existentially hiding the underlying type.

Constructs an instance of GenIntegralPoly using the specified Gen and Numeric instances, existentially hiding the underlying type.

Attributes

def byte(implicit trace: Trace): GenNumericPoly

Provides evidence that instances of Gen and Numeric exist for bytes.

Provides evidence that instances of Gen and Numeric exist for bytes.

Attributes

def char(implicit trace: Trace): GenNumericPoly

Provides evidence that instances of Gen and Numeric exist for characters.

Provides evidence that instances of Gen and Numeric exist for characters.

Attributes

def double(implicit trace: Trace): GenNumericPoly

Provides evidence that instances of Gen and Numeric exist for doubles.

Provides evidence that instances of Gen and Numeric exist for doubles.

Attributes

def float(implicit trace: Trace): GenNumericPoly

Provides evidence that instances of Gen and Numeric exist for floats.

Provides evidence that instances of Gen and Numeric exist for floats.

Attributes

def genNumericPoly(implicit trace: Trace): Gen[Any, GenNumericPoly]

A generator of polymorphic values constrainted to have a Numeric instance.

A generator of polymorphic values constrainted to have a Numeric instance.

Attributes

def int(implicit trace: Trace): GenNumericPoly

Provides evidence that instances of Gen and Numeric exist for integers.

Provides evidence that instances of Gen and Numeric exist for integers.

Attributes

def long(implicit trace: Trace): GenNumericPoly

Provides evidence that instances of Gen and Numeric exist for longs.

Provides evidence that instances of Gen and Numeric exist for longs.

Attributes

def short(implicit trace: Trace): GenNumericPoly

Provides evidence that instances of Gen and Numeric exist for shorts.

Provides evidence that instances of Gen and Numeric exist for shorts.

Attributes