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

Test.Cardano.Ledger.Binary.Plain.Golden

Synopsis

Documentation

data Enc where Source #

Constructors

EToCBOR a ⇒ a → Enc 
EvEncCBOR a ⇒ Version → a → Enc 
Em ∷ [Enc] → Enc 

Instances

Instances details
Monoid Enc Source # 
Instance details

Defined in Test.Cardano.Ledger.Binary.Plain.Golden

Methods

memptyEnc Source #

mappendEncEncEnc Source #

mconcat ∷ [Enc] → Enc Source #

Semigroup Enc Source # 
Instance details

Defined in Test.Cardano.Ledger.Binary.Plain.Golden

Methods

(<>)EncEncEnc Source #

sconcatNonEmpty EncEnc Source #

stimesIntegral b ⇒ b → EncEnc Source #

ToCBOR Enc Source # 
Instance details

Defined in Test.Cardano.Ledger.Binary.Plain.Golden

Methods

toCBOREncEncoding Source #

encodedSizeExpr ∷ (∀ t. ToCBOR t ⇒ Proxy t → Size) → Proxy EncSize Source #

encodedListSizeExpr ∷ (∀ t. ToCBOR t ⇒ Proxy t → Size) → Proxy [Enc] → Size Source #

data DiffView Source #

Indicator of the format in which the diff should be displayed.

Constructors

DiffCBOR

TreeDiff bytes as CBOR Terms

DiffHex

TreeDiff bytes as Base64 encoded strings

DiffRaw

TreeDiff will be shown on raw bytes.

DiffAuto

Let hspec handle the diffing

expectGoldenEncodingHasCallStack ⇒ (a → Encoding) → (b → Encoding) → DiffView → a → b → Expectation Source #