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 8105bcc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cmp/compare.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
//
// 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 cmp may panic if it cannot
// compare the values. It's propensity towards panicking means that it is
// unsuitable for production environments where a spurious panic may be fatal.
//
// The primary features of cmp are:
//
Expand Down

0 comments on commit 8105bcc

Please sign in to comment.