Skip to content

Commit

Permalink
Document the test-only intentions of this package (#189)
Browse files Browse the repository at this point in the history
This package was never intended to be used in production code.
Document the expectation that this package was only intended
to be used for writing tests.
  • Loading branch information
dsnet authored Feb 27, 2020
1 parent 6fdcbe1 commit f6dc95b
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 f6dc95b

Please sign in to comment.