Skip to content

Commit db81395

Browse files
committed
Mark test.EquateErrors as deprecated
See crossplane/crossplane#4514 for context. We can't remove this (it would be a breaking API change) but I want to discourage and redirect folks. Signed-off-by: Nic Cope <[email protected]>
1 parent a597135 commit db81395

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pkg/test/cmp.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ import (
3333
// This differs from cmpopts.EquateErrors, which does not test for error strings
3434
// and instead returns whether one error 'is' (in the errors.Is sense) the
3535
// other.
36+
//
37+
// Deprecated: Use cmpopts.EquateErrors instead.
3638
func EquateErrors() cmp.Option {
3739
return cmp.Comparer(func(a, b error) bool {
3840
if a == nil || b == nil {

0 commit comments

Comments
 (0)