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
Convey("for succ", func() { str := "hello" patches := ApplyFuncVar(&fake.Marshal, func (_ interface{}) ([]byte, error) { return []byte(str), nil }) defer patches.Reset() bytes, err := fake.Marshal(nil) So(err, ShouldEqual, nil) So(string(bytes), ShouldEqual, str) })
ApplyFuncVar替换为ApplyFunc不也是同样的效果?
The text was updated successfully, but these errors were encountered:
Seems confusing, why not try xgo instead? https://github.com/xhd2015/xgo
Sorry, something went wrong.
No branches or pull requests
Convey("for succ", func() {
str := "hello"
patches := ApplyFuncVar(&fake.Marshal, func (_ interface{}) ([]byte, error) {
return []byte(str), nil
})
defer patches.Reset()
bytes, err := fake.Marshal(nil)
So(err, ShouldEqual, nil)
So(string(bytes), ShouldEqual, str)
})
ApplyFuncVar替换为ApplyFunc不也是同样的效果?
The text was updated successfully, but these errors were encountered: