Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- module Test.Cardano.Ledger.Binary.Arbitrary
- genAddrBadPtr ∷ Crypto c ⇒ Gen (Addr c)
- genCompactAddrBadPtr ∷ Crypto c ⇒ Gen (CompactAddr c)
- genBadPtr ∷ Gen Ptr
- genValidUMap ∷ Gen (UMap StandardCrypto)
- genValidUMapNonEmpty ∷ Gen (UMap StandardCrypto)
- genValidUMapWithCreds ∷ Gen (UMap StandardCrypto, Set (Credential 'Staking StandardCrypto))
- genValidTuples ∷ Gen (Map (Credential 'Staking StandardCrypto) RDPair, Map Ptr (Credential 'Staking StandardCrypto), Map (Credential 'Staking StandardCrypto) (KeyHash 'StakePool StandardCrypto), Map (Credential 'Staking StandardCrypto) (DRep StandardCrypto))
- genValidTuplesNonEmpty ∷ Gen (Map (Credential 'Staking StandardCrypto) RDPair, Map Ptr (Credential 'Staking StandardCrypto), Map (Credential 'Staking StandardCrypto) (KeyHash 'StakePool StandardCrypto), Map (Credential 'Staking StandardCrypto) (DRep StandardCrypto))
- genInvariantNonEmpty ∷ Gen (Credential 'Staking StandardCrypto, Ptr, UMap StandardCrypto)
- genRightPreferenceUMap ∷ Gen (UMap StandardCrypto, Map (Credential 'Staking StandardCrypto) RDPair)
- genInsertDeleteRoundtripRDPair ∷ Gen (UMap StandardCrypto, Credential 'Staking StandardCrypto, RDPair)
- genInsertDeleteRoundtripPtr ∷ Gen (UMap StandardCrypto, Ptr, Credential 'Staking StandardCrypto)
- genInsertDeleteRoundtripSPool ∷ Gen (UMap StandardCrypto, Credential 'Staking StandardCrypto, KeyHash 'StakePool StandardCrypto)
- genInsertDeleteRoundtripDRep ∷ Gen (UMap StandardCrypto, Credential 'Staking StandardCrypto, DRep StandardCrypto)
- 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
genCompactAddrBadPtr ∷ Crypto c ⇒ Gen (CompactAddr c) Source #
Generate a Ptr with full 64bit range for values. Not allowed starting in Babbage
genValidUMapWithCreds ∷ Gen (UMap StandardCrypto, Set (Credential 'Staking StandardCrypto)) Source #
genValidTuples ∷ Gen (Map (Credential 'Staking StandardCrypto) RDPair, Map Ptr (Credential 'Staking StandardCrypto), Map (Credential 'Staking StandardCrypto) (KeyHash 'StakePool StandardCrypto), Map (Credential 'Staking StandardCrypto) (DRep StandardCrypto)) Source #
Used for testing UMap operations
genValidTuplesNonEmpty ∷ Gen (Map (Credential 'Staking StandardCrypto) RDPair, Map Ptr (Credential 'Staking StandardCrypto), Map (Credential 'Staking StandardCrypto) (KeyHash 'StakePool StandardCrypto), Map (Credential 'Staking StandardCrypto) (DRep StandardCrypto)) Source #
genRightPreferenceUMap ∷ Gen (UMap StandardCrypto, Map (Credential 'Staking StandardCrypto) RDPair) Source #
genInsertDeleteRoundtripRDPair ∷ Gen (UMap StandardCrypto, Credential 'Staking StandardCrypto, RDPair) Source #
genInsertDeleteRoundtripPtr ∷ Gen (UMap StandardCrypto, Ptr, Credential 'Staking StandardCrypto) Source #
genInsertDeleteRoundtripSPool ∷ Gen (UMap StandardCrypto, Credential 'Staking StandardCrypto, KeyHash 'StakePool StandardCrypto) Source #
genInsertDeleteRoundtripDRep ∷ Gen (UMap StandardCrypto, Credential 'Staking StandardCrypto, DRep StandardCrypto) 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 |