Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@
This package is intended to be a more powerful and safer alternative to
`reflect.DeepEqual` for comparing whether two values are semantically equal.

It is intended to only be used in tests, as performance is not a goal and
it may panic if it cannot compare the values. Its propensity towards
panicking means that its unsuitable for production environments where a
spurious panic may be fatal.

The primary features of `cmp` are:

* When the default behavior of equality does not suit the needs of the test,
Expand Down