Skip to content

Commit

Permalink
Document the test-only intentions of this package
Browse files Browse the repository at this point in the history
  • Loading branch information
dsnet committed Feb 27, 2020
1 parent 5a6f757 commit eb6a5b5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cmp/compare.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@
//
// 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:
//
Expand Down

0 comments on commit eb6a5b5

Please sign in to comment.