tasty-golden-extra-0.1.0.0: Additional golden test helpers for the tasty-golden package
Copyright(C) 2024 Bellroy Pty Ltd
LicenseBSD-3-Clause
MaintainerBellroy Tech Team <haskell@bellroy.com>
Stabilityexperimental
Safe HaskellSafe-Inferred
LanguageHaskell2010

Test.Tasty.Golden.Extra.Internal

Description

Common types and functions used by the other modules in `tasty-golden-extra`.

Synopsis

Documentation

checkJsonDifference :: Value -> Value -> JsonDifference Source #

Compare two JSON values and return a JsonDifference representing the result.

maybeDifference :: JsonDifference -> Maybe String Source #

Convert a JsonDifference to a `Maybe String` containing the error message.

data JsonDifference Source #

Represents the result of comparing two JSON values - either the JSON is identical, or there are differences and you are given an error message containing the differences.