GenNumericPoly

zio.test.poly.GenNumericPoly
See theGenNumericPoly companion trait

Attributes

Companion
trait
Source
GenNumericPoly.scala
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

Source
GenNumericPoly.scala
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

Source
GenNumericPoly.scala
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

Source
GenNumericPoly.scala
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

Source
GenNumericPoly.scala
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

Source
GenNumericPoly.scala
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

Source
GenNumericPoly.scala
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

Source
GenNumericPoly.scala
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

Source
GenNumericPoly.scala
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

Source
GenNumericPoly.scala