cardano-ledger-binary-1.6.0.0: Binary serialization library used throughout ledger
Safe HaskellSafe-Inferred
LanguageHaskell2010

Test.Cardano.Ledger.Binary

Synopsis

Documentation

decoderEquivalenceSpec ∷ ∀ t. (Eq t, ToCBOR t, DecCBOR (Annotator t), Arbitrary t, Show t) ⇒ VersionVersionSpec Source #

Generates arbitrary values, encodes them, and verifies that decoding with `DecCBOR (Annotator)` produces the same result as decoding with DecCBOR.

decoderEquivalenceExpectation ∷ ∀ t. (Eq t, DecCBOR t, DecCBOR (Annotator t), Show t) ⇒ Version → ByteString → Expectation Source #

decoderEquivalenceProp ∷ ∀ t. (Eq t, ToCBOR t, DecCBOR (Annotator t), Show t) ⇒ VersionVersion → t → Property Source #