Supported data formats and determinism
masterCupaloy uses github.com/davecgh/go-spew to deep pretty-print test results via reflection.
- Supported types: Most basic types including strings, slices, maps, and deeply nested structs.
- Unsupported types: Functions and channels cannot be fully pretty-printed.
- Requirement: Test output must be deterministic. If your output contains non-deterministic fields like timestamps,
cupaloywill detect a change on every run and fail the test.