Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- module Test.Cardano.Ledger.Binary.Arbitrary
- genAddrBadPtr ∷ Gen Addr
- genCompactAddrBadPtr ∷ Gen CompactAddr
- genBadPtr ∷ Gen Ptr
- genValidUMap ∷ Gen UMap
- genValidUMapNonEmpty ∷ Gen UMap
- genValidUMapWithCreds ∷ Gen (UMap, Set (Credential 'Staking))
- genValidTuples ∷ Gen (Map (Credential 'Staking) RDPair, Map Ptr (Credential 'Staking), Map (Credential 'Staking) (KeyHash 'StakePool), Map (Credential 'Staking) DRep)
- genValidTuplesNonEmpty ∷ Gen (Map (Credential 'Staking) RDPair, Map Ptr (Credential 'Staking), Map (Credential 'Staking) (KeyHash 'StakePool), Map (Credential 'Staking) DRep)
- genInvariantNonEmpty ∷ Gen (Credential 'Staking, Ptr, UMap)
- genRightPreferenceUMap ∷ Gen (UMap, Map (Credential 'Staking) RDPair)
- genInsertDeleteRoundtripRDPair ∷ Gen (UMap, Credential 'Staking, RDPair)
- genInsertDeleteRoundtripPtr ∷ Gen (UMap, Ptr, Credential 'Staking)
- genInsertDeleteRoundtripSPool ∷ Gen (UMap, Credential 'Staking, KeyHash 'StakePool)
- genInsertDeleteRoundtripDRep ∷ Gen (UMap, Credential 'Staking, DRep)
- genValidAndUnknownCostModels ∷ Gen CostModels
- genValidCostModel ∷ Language → Gen CostModel
- genValidCostModels ∷ Set Language → Gen CostModels
- uniformSubSet ∷ (StatefulGen g m, Ord k) ⇒ Maybe Int → Set k → g → m (Set k)
- uniformSubMap ∷ (StatefulGen g m, Ord k) ⇒ Maybe Int → Map k v → g → m (Map k v)
- uniformSubMapElems ∷ (StatefulGen g m, Monoid f) ⇒ (k → v → f → f) → Maybe Int → Map k v → g → m f
Documentation
Generate a Ptr with full 64bit range for values. Not allowed starting in Babbage
genValidUMapWithCreds ∷ Gen (UMap, Set (Credential 'Staking)) Source #
genValidTuples ∷ Gen (Map (Credential 'Staking) RDPair, Map Ptr (Credential 'Staking), Map (Credential 'Staking) (KeyHash 'StakePool), Map (Credential 'Staking) DRep) Source #
Used for testing UMap operations
genValidTuplesNonEmpty ∷ Gen (Map (Credential 'Staking) RDPair, Map Ptr (Credential 'Staking), Map (Credential 'Staking) (KeyHash 'StakePool), Map (Credential 'Staking) DRep) Source #
genInvariantNonEmpty ∷ Gen (Credential 'Staking, Ptr, UMap) Source #
genRightPreferenceUMap ∷ Gen (UMap, Map (Credential 'Staking) RDPair) Source #
Plutus
Utils
Will need to find a better home in the future
∷ (StatefulGen g m, Monoid f) | |
⇒ (k → v → f → f) | |
→ Maybe Int | Size of the subMap. If supplied will be clamped to |
→ Map k v | |
→ g | |
→ m f |