Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- genAssetId :: Gen AssetId
- genAssetIdLargeRange :: Gen AssetId
- genTokenMap :: Gen TokenMap
- genTokenMapSmallRange :: Gen TokenMap
- shrinkAssetId :: AssetId -> [ AssetId ]
- shrinkTokenMap :: TokenMap -> [ TokenMap ]
- newtype AssetIdF = AssetIdF AssetId
- genTokenMapPartition :: TokenMap -> Int -> Gen ( NonEmpty TokenMap )
- genTokenMapPartitionNonNull :: TokenMap -> Int -> Gen [ TokenMap ]
Documentation
genAssetId :: Gen AssetId Source #
shrinkAssetId :: AssetId -> [ AssetId ] Source #
shrinkTokenMap :: TokenMap -> [ TokenMap ] Source #
Instances
Eq AssetIdF Source # | |
Read AssetIdF Source # | |
Show AssetIdF Source # | |
Generic AssetIdF Source # | |
Function AssetIdF Source # | |
CoArbitrary AssetIdF Source # | |
Defined in Cardano.Wallet.Primitive.Types.TokenMap.Gen |
|
type Rep AssetIdF Source # | |
Defined in Cardano.Wallet.Primitive.Types.TokenMap.Gen
type
Rep
AssetIdF
=
D1
('
MetaData
"AssetIdF" "Cardano.Wallet.Primitive.Types.TokenMap.Gen" "cardano-wallet-core-2022.7.1-AGKhlyz9liLKN3QqZD1gj" '
True
) (
C1
('
MetaCons
"AssetIdF" '
PrefixI
'
False
) (
S1
('
MetaSel
('
Nothing
::
Maybe
Symbol
) '
NoSourceUnpackedness
'
NoSourceStrictness
'
DecidedLazy
) (
Rec0
AssetId
)))
|
genTokenMapPartition :: TokenMap -> Int -> Gen ( NonEmpty TokenMap ) Source #
Partitions a token map randomly into a given number of parts.
Satisfies the following properties:
forAll (genTokenMapPartition m i) $ (== m ) . fold
forAll (genTokenMapPartition m i) $ (== max 1 i) . length
genTokenMapPartitionNonNull :: TokenMap -> Int -> Gen [ TokenMap ] Source #
Like
genTokenMapPartition
, but with empty values removed from the result.