Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- goldenYamlSchemaFileVia :: FilePath -> IO (ValueCodec input output) -> GoldenTest Text
- pureGoldenYamlSchemaFileVia :: FilePath -> ValueCodec input output -> GoldenTest Text
- pureGoldenYamlSchemaFileViaCodec :: forall a. HasCodec a => FilePath -> GoldenTest Text
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.