-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Turn a panicking cmp.Diff into a bad check
Using Not(DeepEquals) on a type with an unexported field currently succeeds without an error. This is because the unexported field is raised as a panic by go-cmp, which is turned into a plain error by the library. Not then interprets the error to mean "not equal" instead of forwarding it to the user. Fix this by turning any go-cmp panics into a bad check. Fixes #153
- Loading branch information
Showing
2 changed files
with
8 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters