Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't list setups in Verify(...) error message #779

Merged
merged 2 commits into from
Mar 9, 2019

Conversation

stakx
Copy link
Contributor

@stakx stakx commented Mar 9, 2019

Unlike mock.Verify() and mock.VerifyAll(), which look at a mock's setups, mock.Verify(m => ...) has absolutely no relation to setups. Listing configured setups in that method's error message can only mislead users into thinking otherwise.

This commit removes setup information from these error messages. (The list of performed invocations is of course preserved.)

Unlike `mock.Verify()` and `mock.VerifyAll()`, which look at a mock's
setups, `mock.Verify(m => ...)` has absolutely no relation to setups.
Listing configured setups in that method's error message can only mis-
lead users into thinking otherwise.

This commit removes setup information from these error messages. (The
list of performed invocations is of course preserved.)
@stakx stakx added this to the 4.11.0 milestone Mar 9, 2019
@stakx stakx merged commit 13779bd into devlooped:master Mar 9, 2019
@stakx stakx deleted the verify-invocation-error-message branch March 9, 2019 22:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant