Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- goldenJSONFile :: FilePath -> IO Value -> GoldenTest Value
- pureGoldenJSONFile :: FilePath -> Value -> GoldenTest Value
- goldenJSONValueFile :: (Show a, Eq a, FromJSON a, ToJSON a) => FilePath -> IO a -> GoldenTest a
- pureGoldenJSONValueFile :: (Show a, Eq a, FromJSON a, ToJSON a) => FilePath -> a -> GoldenTest a
Golden tests
goldenJSONFile :: FilePath -> IO Value -> GoldenTest Value Source #
Test that the produced Value
is the same as what we find in the given golden file.
This function shows a diff based on the encoding of the values.
pureGoldenJSONFile :: FilePath -> Value -> GoldenTest Value Source #
Test that the given Value
is the same as what we find in the given golden file.
This function shows a diff based on the encoding of the values.
goldenJSONValueFile :: (Show a, Eq a, FromJSON a, ToJSON a) => FilePath -> IO a -> GoldenTest a Source #
pureGoldenJSONValueFile :: (Show a, Eq a, FromJSON a, ToJSON a) => FilePath -> a -> GoldenTest a Source #