expected call at xxx_test.go:28 doesn't match the argument at index 0.
Got: [0x1303340]
Want: is equal to 0x1303340
controller.go:266: missing call(s) to *mocks.MockStoreInterface.Set(is equal to 0x1303340) xxx_test.go:28
controller.go:266: aborting test due to missing call(s)
--- FAIL: TestCacheInvalidate (0.00s)
Expected behavior
no errors
To Reproduce
code:
var f= func() {fmt.Println("a func")}
s.EXPECT().Set(f).Return(nil)
s.Set(f)
I believe this is a duplicate of #324. I will close this issue in favor of that one. If this is something you are interested in I would gladly accept a PR :)
Actual behavior out:
Expected behavior no errors
To Reproduce
Additional Information
Triage Notes for the Maintainers
suggest
or in eqMatcher judge type of
x
if it is func do: