Versions in this module Expand all Collapse all v0 v0.1.0 Sep 6, 2026 Changes in this version + func CaptureSlog(t CleanupT) *bytes.Buffer + func CollectVars(a, b string, opts *DiffOptions) (map[string]any, error) + func CollectVarsStream(a, b io.Reader, opts *DiffOptions) (map[string]any, error) + func JSONEqual(t TestingT, expected, actual any, jsonOpts ...json.Options) bool + func JSONSubset(t TestingT, expected, actual any, jsonOpts ...json.Options) bool + func PrettyJSON(val any, opts ...json.Options) string + func PrintTable(data any, columns []string, opts ...json.Options) (string, error) + func RegisterMatcher(name string, fn Matcher) + func TableEqual(t TestingT, expected string, data any, columns []string, ...) bool + type CleanupT interface + Cleanup func(func()) + type DiffOptions struct + Added Tag + Changed Tag + ChangedSeparator string + CompareNumbers func(a, b Number) bool + Indent string + Normal Tag + Prefix string + PrintTypes bool + Removed Tag + SkipMatches bool + Skipped Tag + func ConsoleDiffOptions() *DiffOptions + func JSONDiffOptions() *DiffOptions + type Difference int + const BothArgsAreInvalidJSON + const ExpressionError + const FirstArgIsInvalidJSON + const FullMatch + const NoMatch + const SecondArgIsInvalidJSON + const SubsetMatch + const SupersetMatch + func Compare(a, b []byte, opts *DiffOptions) (Difference, string) + func CompareStr(a, b string, opts *DiffOptions) (Difference, string) + func CompareStreams(a, b io.Reader, opts *DiffOptions) (Difference, string) + func (d Difference) String() string + type Matcher func(actual any) bool + type Number string + type Tag struct + Begin string + End string + type TestingT interface + Errorf func(format string, args ...any)