Shrink

sealed abstract class Shrink[T] extends Serializable
Companion
object
trait Serializable
class Object
trait Matchable
class Any

Value members

Abstract methods

def shrink(x: T): Stream[T]
Implicitly added by shrinkOption
def shrink(x: T): Stream[T]

Concrete methods

def suchThat(f: T => Boolean): Shrink[T]
Implicitly added by shrinkOption

Create a new shrink that only produces values satisfying the given condition.

Create a new shrink that only produces values satisfying the given condition.

def suchThat(f: T => Boolean): Shrink[T]

Create a new shrink that only produces values satisfying the given condition.

Create a new shrink that only produces values satisfying the given condition.