| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Test.Consensus.Ledger.Mock.Generators
Contents
Orphan instances
| Arbitrary ByteSize32 Source # | |
| Arbitrary Addr Source # | |
| Arbitrary SimpleBody Source # | |
| Arbitrary MockConfig Source # | |
| Arbitrary Tx Source # | |
| (SimpleCrypto c, Arbitrary ext, Serialise ext, Typeable ext) ⇒ Arbitrary (Header (SimpleBlock c ext)) Source # | |
| HashAlgorithm (SimpleHash c) ⇒ Arbitrary (AnnTip (SimpleBlock c ext)) Source # | |
| Arbitrary (SomeBlockQuery (BlockQuery (SimpleBlock c ext))) Source # | |
Methods arbitrary ∷ Gen (SomeBlockQuery (BlockQuery (SimpleBlock c ext))) Source # shrink ∷ SomeBlockQuery (BlockQuery (SimpleBlock c ext)) → [SomeBlockQuery (BlockQuery (SimpleBlock c ext))] Source # | |
| Arbitrary (GenTx (SimpleBlock c ext)) Source # | |
| Arbitrary (TxId (GenTx (SimpleBlock c ext))) Source # | |
| (SimpleCrypto c, Arbitrary ext, Serialise ext, Typeable ext) ⇒ Arbitrary (Coherent (SimpleBlock c ext)) Source # | This blindly creates random values, so the block will not be valid, but
this does not matter for serialisation tests. Except we do touch-up the
|
| (SimpleCrypto c, Typeable ext) ⇒ Arbitrary (SomeResult (SimpleBlock c ext)) Source # | |
| Arbitrary (HeaderHash blk) ⇒ Arbitrary (MockError blk) Source # | |
| Arbitrary (MockState blk) Source # | |
| (SimpleCrypto c, Typeable ext) ⇒ Arbitrary (LedgerState (SimpleBlock c ext) EmptyMK) Source # | |
Methods arbitrary ∷ Gen (LedgerState (SimpleBlock c ext) EmptyMK) Source # shrink ∷ LedgerState (SimpleBlock c ext) EmptyMK → [LedgerState (SimpleBlock c ext) EmptyMK] Source # | |
| (SimpleCrypto c, Typeable ext) ⇒ Arbitrary (LedgerState (SimpleBlock c ext) ValuesMK) Source # | |
Methods arbitrary ∷ Gen (LedgerState (SimpleBlock c ext) ValuesMK) Source # shrink ∷ LedgerState (SimpleBlock c ext) ValuesMK → [LedgerState (SimpleBlock c ext) ValuesMK] Source # | |
| Arbitrary (LedgerTables (SimpleBlock c ext) ValuesMK) Source # | |
Methods arbitrary ∷ Gen (LedgerTables (SimpleBlock c ext) ValuesMK) Source # shrink ∷ LedgerTables (SimpleBlock c ext) ValuesMK → [LedgerTables (SimpleBlock c ext) ValuesMK] Source # | |
| Arbitrary (BftFields BftMockCrypto toSign) Source # | |
Methods arbitrary ∷ Gen (BftFields BftMockCrypto toSign) Source # shrink ∷ BftFields BftMockCrypto toSign → [BftFields BftMockCrypto toSign] Source # | |
| (SimpleCrypto c, Arbitrary ext, Serialise ext, Typeable ext) ⇒ Arbitrary (SimpleBlock c ext) Source # | This blindly creates random values, so the block will not be valid, but this does not matter for serialisation tests. |
| Arbitrary (MockLedgerConfig c ext) ⇒ Arbitrary (SimpleLedgerConfig c ext) Source # | |
| (HashAlgorithm (SimpleHash c), Arbitrary ext, Serialise ext) ⇒ Arbitrary (SimpleStdHeader c ext) Source # | |
| Arbitrary (SimpleBftExt c BftMockCrypto) Source # | |
Methods arbitrary ∷ Gen (SimpleBftExt c BftMockCrypto) Source # shrink ∷ SimpleBftExt c BftMockCrypto → [SimpleBftExt c BftMockCrypto] Source # | |
| Arbitrary (HeaderHash blk) ⇒ Arbitrary (ChainHash blk) Source # | |
| Arbitrary (HeaderHash blk) ⇒ Arbitrary (Point blk) Source # | |
| Arbitrary (SomeSecond (NestedCtxt Header) (SimpleBlock c ext)) Source # | |
Methods arbitrary ∷ Gen (SomeSecond (NestedCtxt Header) (SimpleBlock c ext)) Source # shrink ∷ SomeSecond (NestedCtxt Header) (SimpleBlock c ext) → [SomeSecond (NestedCtxt Header) (SimpleBlock c ext)] Source # | |