-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
## Motivation In some cases we don't care about other errors and just want to check that specific one is produced. To achieve that we should add a helper which would work on a single error, similar to how `assert.ErrorContains` works. ## Release Notes Added `govytest.AssertErrorContains` function which helps test govy rules by checking if a produced `govy.ValidatorError` contains specified error.
- Loading branch information
1 parent
c2b1093
commit 78d44fd
Showing
3 changed files
with
455 additions
and
8 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
Oops, something went wrong.