cardano-ledger-test-9.9.9.9: Testing harness, tests and benchmarks for Shelley style cardano ledgers
Safe HaskellSafe-Inferred
LanguageHaskell2010

Test.Cardano.Ledger.Generic.Properties

Synopsis

Documentation

genTxAndUTXOStateReflect era ⇒ Proof era → GenSizeGen (TRC (EraRule "UTXOW" era), GenState era) Source #

genTxAndLEDGERState ∷ ∀ era. (Reflect era, Signal (EraRule "LEDGER" era) ~ Tx era, State (EraRule "LEDGER" era) ~ LedgerState era, Environment (EraRule "LEDGER" era) ~ LedgerEnv era) ⇒ Proof era → GenSizeGen (Box era) Source #

testTxValidForLEDGER ∷ (Reflect era, Signal (EraRule "LEDGER" era) ~ Tx era, State (EraRule "LEDGER" era) ~ LedgerState era, PrettyA (PredicateFailure (EraRule "LEDGER" era))) ⇒ Proof era → Box era → Property Source #

txOutRoundTripEraTxOut era ⇒ Proof era → TxOut era → Property Source #

txRoundTripEraTx era ⇒ Proof era → Tx era → Property Source #

txBodyRoundTripEraTxBody era ⇒ Proof era → TxBody era → Property Source #

txWitRoundTripEraTxWits era ⇒ Proof era → TxWits era → Property Source #

txPreserveAdaGenSizeTestTree Source #

A single Tx preserves Ada

adaIsPreserved ∷ (Reflect era, HasTrace (MOCKCHAIN era) (Gen1 era)) ⇒ Proof era → IntGenSizeTestTree Source #

Ada is preserved over a trace of length 100

stakeInvariantEraTxOut era ⇒ MockChainState era → MockChainState era → Property Source #

The incremental Stake invaraint is preserved over a trace of length 100=

mainIO () Source #

main8IO () Source #

testIntProof era → IO () Source #

makeGenReflect era ⇒ Proof era → (Proof era → GenRS era b) → Gen b Source #

Construct a random (Gen b)

runTest ∷ (Reflect era, PrettyA a) ⇒ (Proof era → GenRS era a) → (a → IO ()) → Proof era → IO () Source #

main2IO () Source #

main3IO () Source #