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.AggPropTests

Synopsis

Documentation

aggProp ∷ agg → (agg → Signal sts → agg) → (State sts → State sts → agg → prop) → Trace sts → prop Source #

consistentUtxoSizePropEraTx era ⇒ Proof era → Trace (MOCKCHAIN era) → Property Source #

The aggregate sizes of (outputs - inputs) is consistent with the change in size of the UTxO. Be carefull to choose the correct outputs and inputs, depending on if the Tx validates.

aggUTxO ∷ ∀ era. (HasTrace (MOCKCHAIN era) (Gen1 era), Reflect era) ⇒ Proof era → Gen Property Source #

forAllChainTrace ∷ (Testable prop, Reflect era) ⇒ Proof era → Int → (Trace (MOCKCHAIN era) → prop) → Property Source #

depositInvariantSourceSignalTarget (MOCKCHAIN era) → Property Source #

Check that the sum of Key Deposits and the Pool Depoits are equal to the utxosDeposits

depositEra ∷ ∀ era. Reflect era ⇒ Proof era → TestTree Source #

testErasString → [Some Proof] → (∀ era. Reflect era ⇒ Proof era → TestTree) → TestTree Source #

Build a TestTree that tests f at all the Eras listed in ps