shrink

io.github.martinhh.derived.shrink
object shrink

Public "API-entry-point" for derivation of Shrink-instances.

Note that derivation increases compile-time and that there is a (non-shrinking) fallback Shrink[T] for any type T provided by org.scalacheck.Shrink.shrinkAny. So: only use this if your need for shrinking justifies the extra compile-time overhead.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type
shrink.type

Members list

Value members

Inherited methods

inline def deriveShrink[T](using m: Of[T]): Shrink[T]

Attributes

Inherited from:
ShrinkDeriving (hidden)

Givens

Inherited givens

inline given anyGivenShrink[T]: Shrink[T]

Attributes

Inherited from:
ShrinkDeriving (hidden)