Shrink

org.scalacheck.Shrink
See theShrink companion object
sealed abstract class Shrink[T] extends Serializable

Attributes

Companion
object
Source
Shrink.scala
Graph
Supertypes
trait Serializable
class Object
trait Matchable
class Any
Known subtypes
class ShrinkFractional[T]
class ShrinkIntegral[T]

Members list

Value members

Abstract methods

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

Attributes

Source
Shrink.scala
def shrink(x: T): Stream[T]

Attributes

Source
Shrink.scala

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.

Attributes

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

Attributes

Source
Shrink.scala