Merge pull request #7706 from sivchari/fix-incorrect-function-name
revise from reflect.Equal to reflect.DeepEqual
This commit is contained in:
commit
60f3c93a0b
|
@ -104,7 +104,7 @@ Testing:
|
|||
should be considered for critical and/or CPU intensive operations.
|
||||
- General guidelines:
|
||||
- Follow a [DAMP principle](https://stackoverflow.com/a/11837973).
|
||||
- Use `cmp.Diff` instead of `reflect.Equal`, to provide useful comparisons.
|
||||
- Use `cmp.Diff` instead of `reflect.DeepEqual`, to provide useful comparisons.
|
||||
- Compare errors using `errors.Is` (`cmpopts.EquateErrors` when using
|
||||
`cmp.Diff`) instead of comparing the error strings.
|
||||
- Leverage existing utility functions from `pkg/scheduler/testing`.
|
||||
|
|
Loading…
Reference in New Issue