Class/Object

zio.test

Sample

Related Docs: object Sample | package test

Permalink

final case class Sample[-R, +A](value: A, shrink: ZStream[R, Nothing, Sample[R, A]]) extends Product with Serializable

A sample is a single observation from a random variable, together with a tree of "shrinkings" used for minimization of "large" failures.

Self Type
Sample[R, A]
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Sample
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Sample(value: A, shrink: ZStream[R, Nothing, Sample[R, A]])

    Permalink

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. def <&>[R1 <: R, B](that: Sample[R1, B]): Sample[R1, (A, B)]

    Permalink

    A symbolic alias for zip.

  4. def <*>[R1 <: R, B](that: Sample[R1, B]): Sample[R1, (A, B)]

    Permalink

    A symbolic alias for cross.

  5. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  6. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  7. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. def cross[R1 <: R, B](that: Sample[R1, B]): Sample[R1, (A, B)]

    Permalink

    Composes this sample with the specified sample to create a cartesian product of values and shrinkings.

  9. def crossWith[R1 <: R, B, C](that: Sample[R1, B])(f: (A, B) ⇒ C): Sample[R1, C]

    Permalink

    Composes this sample with the specified sample to create a cartesian product of values and shrinkings with the specified function.

  10. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  11. def filter(f: (A) ⇒ Boolean): ZStream[R, Nothing, Sample[R, A]]

    Permalink

    Filters this sample by replacing it with its shrink tree if the value does not meet the specified predicate and recursively filtering the shrink tree.

  12. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  13. def flatMap[R1 <: R, B](f: (A) ⇒ Sample[R1, B]): Sample[R1, B]

    Permalink
  14. def foreach[R1 <: R, B](f: (A) ⇒ ZIO[R1, Nothing, B]): ZIO[R1, Nothing, Sample[R1, B]]

    Permalink
  15. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  16. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  17. def map[B](f: (A) ⇒ B): Sample[R, B]

    Permalink
  18. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  19. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  20. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  21. val shrink: ZStream[R, Nothing, Sample[R, A]]

    Permalink
  22. def shrinkSearch(f: (A) ⇒ Boolean): ZStream[R, Nothing, A]

    Permalink

    Converts the shrink tree into a stream of shrinkings by recursively searching the shrink tree, using the specified function to determine whether a value is a failure.

    Converts the shrink tree into a stream of shrinkings by recursively searching the shrink tree, using the specified function to determine whether a value is a failure. The resulting stream will contain all values explored, regardless of whether they are successes or failures.

  23. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  24. val value: A

    Permalink
  25. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  26. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  27. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  28. def zip[R1 <: R, B](that: Sample[R1, B]): Sample[R1, (A, B)]

    Permalink

    Zips two samples together pairwise.

  29. def zipWith[R1 <: R, B, C](that: Sample[R1, B])(f: (A, B) ⇒ C): Sample[R1, C]

    Permalink

    Zips two samples together pairwise with the specified function.

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped