cardano-ledger-core-1.15.1.0: Core components of Cardano ledgers from the Shelley release on.
Safe HaskellSafe-Inferred
LanguageHaskell2010

Test.Cardano.Ledger.Core.JSON

Synopsis

Documentation

roundTripJsonSpec ∷ ∀ t. (HasCallStack, Typeable t, Show t, Eq t, ToJSON t, FromJSON t, Arbitrary t) ⇒ Spec Source #

QuickCheck property spec that uses roundTripJsonProperty

roundTripJsonEraSpec ∷ ∀ era. (HasCallStack, EraPParams era, Arbitrary (PParams era)) ⇒ Spec Source #

Roundtrip JSON testing for core type families.

roundTripJsonProperty ∷ ∀ t. (HasCallStack, Show t, Eq t, ToJSON t, FromJSON t) ⇒ t → Property Source #

Roundtrip JSON testing for types that implement ToJSON/FromJSON.