RecursionFallback

io.github.martinhh.derived.RecursionFallback
See theRecursionFallback companion object
sealed trait RecursionFallback[A]

Typeclass that allows to provide a "fallback" for recursive data structures.

If an instance of this is in scope, derived Arbitrary-instances for sum types will use the provided Gen once recursion depth reaches the configured scalacheck size.

Thus, the provided Gen should return a non-recursive subtype of the sum type (e.g. the "leaf" of a recursive tree).

Attributes

Companion
object
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Abstract methods

def fallbackGen: Gen[A]