cardano-ledger-binary-1.6.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 #

mappendEncEncEnc #

mconcat ∷ [Enc] → Enc #

Semigroup Enc Source # 
Instance details

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

Methods

(<>)EncEncEnc #

sconcatNonEmpty EncEnc #

stimesIntegral b ⇒ b → EncEnc #

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 #