consensus-test
Safe HaskellSafe-Inferred
LanguageHaskell2010

Test.Consensus.Genesis.Setup

Synopsis

Documentation

forAllGenesisTestTestable prop ⇒ Gen (GenesisTestFull TestBlock) → SchedulerConfig → (GenesisTestFull TestBlockStateView TestBlock → [GenesisTestFull TestBlock]) → (GenesisTestFull TestBlockStateView TestBlock → prop) → Property Source #

All-in-one helper that generates a GenesisTest and a 'Peers PeerSchedule', runs them with runGenesisTest, check whether the given property holds on the resulting StateView.

runGenesisTestSchedulerConfigGenesisTestFull TestBlockRunGenesisTestResult Source #

Runs the given GenesisTest and PointSchedule and evaluates the given property on the final StateView.

runGenesisTest'Testable prop ⇒ SchedulerConfigGenesisTestFull TestBlock → (StateView TestBlock → prop) → Property Source #

Variant of runGenesisTest that also takes a property on the final StateView and returns a QuickCheck property. The trace is printed in case of counter-example.