sydtest-autodocodec-0.0.0.0: An autodocodec companion library for sydtest
Safe HaskellSafe-Inferred
LanguageHaskell2010

Test.Syd.Autodocodec

Contents

Synopsis

Golden tests

goldenYamlSchemaFileVia :: FilePath -> IO (ValueCodec input output) -> GoldenTest Text Source #

Test that the Yaml schema of the produced Codec is the same as what we find in the given golden file.

pureGoldenYamlSchemaFileVia :: FilePath -> ValueCodec input output -> GoldenTest Text Source #

Test that the Yaml schema of the given Codec is the same as what we find in the given golden file.

pureGoldenYamlSchemaFileViaCodec :: forall a. HasCodec a => FilePath -> GoldenTest Text Source #

Test that the Yaml schema of the Codec of the given type is the same as what we find in the given golden file.