ArbitraryDerivation
Derives an Arbitrary instance for a given type T using Magnolia.
Attributes
- Example
-
given Arbitrary[AddrKeyHash] = ArbitraryDerivation.autoDerived[AddrKeyHash] - Graph
-
- Supertypes
-
trait AutoDerivation[Arbitrary]trait Derivation[Arbitrary]trait SealedTraitDerivationtrait CommonDerivation[Arbitrary]class Objecttrait Matchableclass AnyShow all
- Self type
-
ArbitraryDerivation.type
Members list
Type members
Classlikes
Attributes
- Companion
- object
- Supertypes
-
trait Serializableclass Objecttrait Matchableclass Any
- Known subtypes
-
object NoFallback
Inherited types
Attributes
- Inherited from:
- CommonDerivation
Value members
Concrete methods
Magnolia callback: derives an Arbitrary[T] for a product type by recursively combining generators for each field. Falls back to the implicit Fallback[T] once the size budget is exhausted to avoid unbounded recursion.
Magnolia callback: derives an Arbitrary[T] for a product type by recursively combining generators for each field. Falls back to the implicit Fallback[T] once the size budget is exhausted to avoid unbounded recursion.
Attributes
Magnolia callback: derives an Arbitrary[T] for a sum type by uniformly choosing one of its subtypes and delegating to that subtype's generator. Falls back to the implicit Fallback[T] once the size budget is exhausted to avoid unbounded recursion.
Magnolia callback: derives an Arbitrary[T] for a sum type by uniformly choosing one of its subtypes and delegating to that subtype's generator. Falls back to the implicit Fallback[T] once the size budget is exhausted to avoid unbounded recursion.
Attributes
Inherited methods
Attributes
- Inherited from:
- CommonDerivation
Attributes
- Definition Classes
-
Derivation -> SealedTraitDerivation
- Inherited from:
- Derivation
Attributes
- Inherited from:
- Derivation
Attributes
- Inherited from:
- Derivation
Attributes
- Inherited from:
- CommonDerivation
Attributes
- Inherited from:
- Derivation
Attributes
- Inherited from:
- CommonDerivation
Attributes
- Inherited from:
- CommonDerivation
Attributes
- Inherited from:
- SealedTraitDerivation
Attributes
- Inherited from:
- Derivation
This method unrolls recursion by 16, 4, 1 steps to increase maximal size of SubtypeTuple tuple due to compiler limitation of maximal nested inlines.
This method unrolls recursion by 16, 4, 1 steps to increase maximal size of SubtypeTuple tuple due to compiler limitation of maximal nested inlines.
Attributes
- Inherited from:
- SealedTraitDerivation
Attributes
- Inherited from:
- SealedTraitDerivation
Givens
Inherited givens
Attributes
- Inherited from:
- AutoDerivation