| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Test.Cardano.Ledger.Alonzo.Translation.Golden
Synopsis
- generateGoldenFile ∷ TranslatableGen era ⇒ FilePath → IO ()
- assertTranslationResultsMatchGolden ∷ (TranslatableGen era, DecCBOR (Tx 'TopTx era), HasCallStack) ⇒ IO FilePath → Assertion
Documentation
generateGoldenFile ∷ TranslatableGen era ⇒ FilePath → IO () Source #
Generates arguments for txInfo, applies them to it
and serializes both arguments and result to golden/translations.cbor file
assertTranslationResultsMatchGolden ∷ (TranslatableGen era, DecCBOR (Tx 'TopTx era), HasCallStack) ⇒ IO FilePath → Assertion Source #