ouroboros-consensus-diffusion-0.18.0.0: Integration for the Ouroboros Network layer
Safe HaskellSafe-Inferred
LanguageHaskell2010

Test.Consensus.Ledger.Mock.Generators

Orphan instances

Arbitrary Addr Source # 
Instance details

Arbitrary SimpleBody Source # 
Instance details

Arbitrary Tx Source # 
Instance details

Methods

arbitraryGen Tx Source #

shrinkTx → [Tx] Source #

(SimpleCrypto c, Arbitrary ext, Serialise ext, Typeable ext) ⇒ Arbitrary (Header (SimpleBlock c ext)) Source # 
Instance details

Methods

arbitraryGen (Header (SimpleBlock c ext)) Source #

shrinkHeader (SimpleBlock c ext) → [Header (SimpleBlock c ext)] Source #

HashAlgorithm (SimpleHash c) ⇒ Arbitrary (AnnTip (SimpleBlock c ext)) Source # 
Instance details

Methods

arbitraryGen (AnnTip (SimpleBlock c ext)) Source #

shrinkAnnTip (SimpleBlock c ext) → [AnnTip (SimpleBlock c ext)] Source #

Arbitrary (LedgerState (SimpleBlock c ext)) Source # 
Instance details

Arbitrary (GenTx (SimpleBlock c ext)) Source # 
Instance details

Methods

arbitraryGen (GenTx (SimpleBlock c ext)) Source #

shrinkGenTx (SimpleBlock c ext) → [GenTx (SimpleBlock c ext)] Source #

Arbitrary (TxId (GenTx (SimpleBlock c ext))) Source # 
Instance details

Methods

arbitraryGen (TxId (GenTx (SimpleBlock c ext))) Source #

shrinkTxId (GenTx (SimpleBlock c ext)) → [TxId (GenTx (SimpleBlock c ext))] Source #

(SimpleCrypto c, Arbitrary ext, Serialise 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 simpleBodySize; hence Coherent.

Instance details

(SimpleCrypto c, Typeable ext) ⇒ Arbitrary (SomeResult (SimpleBlock c ext)) Source # 
Instance details

Arbitrary (HeaderHash blk) ⇒ Arbitrary (MockError blk) Source # 
Instance details

Methods

arbitraryGen (MockError blk) Source #

shrinkMockError blk → [MockError blk] Source #

Arbitrary (MockState blk) Source # 
Instance details

Methods

arbitraryGen (MockState blk) Source #

shrinkMockState blk → [MockState blk] Source #

Arbitrary (BftFields BftMockCrypto toSign) Source # 
Instance details

(SimpleCrypto c, Arbitrary ext, Serialise 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.

Instance details

Methods

arbitraryGen (SimpleBlock c ext) Source #

shrinkSimpleBlock c ext → [SimpleBlock c ext] Source #

(HashAlgorithm (SimpleHash c), Arbitrary ext, Serialise ext) ⇒ Arbitrary (SimpleStdHeader c ext) Source # 
Instance details

Arbitrary (SimpleBftExt c BftMockCrypto) Source # 
Instance details

Arbitrary (HeaderHash blk) ⇒ Arbitrary (ChainHash blk) Source # 
Instance details

Methods

arbitraryGen (ChainHash blk) Source #

shrinkChainHash blk → [ChainHash blk] Source #

Arbitrary (HeaderHash blk) ⇒ Arbitrary (Point blk) Source # 
Instance details

Methods

arbitraryGen (Point blk) Source #

shrinkPoint blk → [Point blk] Source #

Arbitrary (SomeSecond (NestedCtxt Header) (SimpleBlock c ext)) Source # 
Instance details

Arbitrary (SomeSecond BlockQuery (SimpleBlock c ext)) Source # 
Instance details