cardano-ledger-conway-1.23.0.0: Cardano ledger with an updated on-chain governance system.
Safe HaskellNone
LanguageHaskell2010

Test.Cardano.Ledger.Conway.Binary.Golden

Synopsis

Documentation

listRedeemersEncEnc Source #

A simple redeemer encoded as a list

cborAnnGoldenSpec Source #

Arguments

∷ (Eq a, Show a, ToCBOR a, DecCBOR (Annotator a), HasCallStack) 
⇒ (FilePathIO FilePath)

Action to get the full path, usually will be Paths_package_name.getDataFileName

FilePath

File path to the golden file relative to the root of the package

Version

Protocol version to be used for decoding

→ a

Value, which in an encoded form will be expected to produce the same contents as in the golden file.

Spec 

Check ToCBOR golden spec as well as roundtripping of the golden example with DecCBOR for its Annotator version.

cborGoldenSpec Source #

Arguments

∷ (Eq a, Show a, EncCBOR a, DecCBOR a, HasCallStack) 
⇒ (FilePathIO FilePath)

Action to get the full path, usually will be Paths_package_name.getDataFileName

FilePath

File path to the golden file relative to the root of the package

Version

Protocol version to be used for encoding

→ a

Value, which in an encoded form will be expected to produce the same contents as in the golden file.

Spec 

Check EncCBOR golden spec as well as roundtripping of the golden example with DecCBOR

expectDecoderResultOn ∷ (DecCBOR (Annotator a), Eq b, HasCallStack, Show b) ⇒ VersionEnc → a → (a → b) → Expectation Source #

expectDecoderSuccessAnnWith ∷ (DecCBOR (Annotator a), HasCallStack, Show a, Eq a) ⇒ (a → a → Bool) → VersionEnc → a → Expectation Source #

goldenForEncCBOR Source #

Arguments

EncCBOR a 
FilePath

Path to the golden file relative to the package

Version

Protocol version to be used for encoding

→ a

Value, which in an encoded form will be expected to produce the same contents as in the golden file.

Golden ByteString 

Golden specification for EncCBOR

goldenForToCBOR Source #

Arguments

ToCBOR a 
FilePath

Path to the golden file relative to the root of the package

→ a

Value, which in an encoded form will be expected to produce the same contents as in the golden file.

Golden ByteString 

Golden specification for ToCBOR