| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Test.Cardano.Ledger.Mary.Arbitrary
Contents
Synopsis
- genMultiAssetCompletelyEmpty ∷ Gen MultiAsset
- genMultiAssetNestedEmpty ∷ Gen MultiAsset
- genMaryValue ∷ Gen MultiAsset → Gen MaryValue
- genMultiAsset ∷ Gen Integer → Gen MultiAsset
- genMultiAssetToFail ∷ Bool → Gen MultiAsset
- genMultiAssetZero ∷ Gen MultiAsset
- genPositiveInt ∷ Gen Int
- genNegativeInt ∷ Gen Int
- genNonNegativeInt ∷ Gen Int
Documentation
genMultiAssetCompletelyEmpty ∷ Gen MultiAsset Source #
Generate completely empty MultiAsset (empty top-level map) This should succeed in Conway but fail in Dijkstra
genMultiAssetNestedEmpty ∷ Gen MultiAsset Source #
Generate MultiAsset with non-empty top-level map but empty nested asset maps This should fail in both Conway and Dijkstra
genMultiAssetZero ∷ Gen MultiAsset Source #
For tests, because insertMultiAsset called through genMultiAsset filters out zero values
genPositiveInt ∷ Gen Int Source #
Better generator for a positive Int that explores more values
genNegativeInt ∷ Gen Int Source #
Better generator for a Negative Int that explores more values
genNonNegativeInt ∷ Gen Int Source #
Better generator for a Non-Negative Int that explores more values
Orphan instances
| Arbitrary AssetName Source # | |
| Arbitrary MaryValue Source # | |
| Arbitrary MultiAsset Source # | |
| Arbitrary PolicyID Source # | |
| Arbitrary (CompactForm MaryValue) Source # | |
Methods arbitrary ∷ Gen (CompactForm MaryValue) Source # shrink ∷ CompactForm MaryValue → [CompactForm MaryValue] Source # | |
| Arbitrary (ApplyTxError MaryEra) Source # | |
Methods arbitrary ∷ Gen (ApplyTxError MaryEra) Source # shrink ∷ ApplyTxError MaryEra → [ApplyTxError MaryEra] Source # | |
| Arbitrary (TransitionConfig MaryEra) Source # | |
Methods arbitrary ∷ Gen (TransitionConfig MaryEra) Source # shrink ∷ TransitionConfig MaryEra → [TransitionConfig MaryEra] Source # | |
| Arbitrary (Tx 'TopTx MaryEra) Source # | |
| Arbitrary (TxBody 'TopTx MaryEra) Source # | |