We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Version: v1.7.2 ApplyFunc use github.com/agiledragon/gomonkey/v2 v2.1.0
v1.7.2
github.com/agiledragon/gomonkey/v2 v2.1.0
Code:
func Test(t *testing.T) { Convey("Test", t, func() { defer ApplyFunc(json.Marshal, func(v interface{}) ([]byte, error) { return nil, errors.New("test shouldNotEqual") }).Reset() _, err := json.Marshal("") So(err, ShouldNotEqual, nil) }) }
Result:
Failures: Line 97: Expected 'test shouldNotEqual' to NOT equal '<nil>' (but it did)! 1 total assertion --- FAIL: Test (0.00s) FAIL
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Version:
v1.7.2
ApplyFunc use
github.com/agiledragon/gomonkey/v2 v2.1.0
Code:
Result:
The text was updated successfully, but these errors were encountered: