You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Actual behavior A clear and concise description of what the bug is.
=== RUN TestA
tests/A_test.go:15: Unexpected call to *tests.MockAer.Hello([[]]) at tests/A_test.go:15 because:
expected call at tests/A_test.go:14 doesn't match the argument at index 0.
Got: [] ([][32]uint8)
Want: is equal to [] ([][32]uint8)
Expected behavior
=== RUN TestA
tests/A_test.go:15: Unexpected call to *tests.MockAer.Hello([[]]) at tests/A_test.go:15 because:
expected call at tests/A_test.go:14 doesn't match the argument at index 0.
Got: nil ([][32]uint8)
Want: is equal to [] ([][32]uint8)
Just wanted to mention that a similar issue was opened and not fixed in the archived golang/mock repo: golang/mock#267
(it was merged into a different issue, whose solution didn't solve the original issue)
Actual behavior A clear and concise description of what the bug is.
Expected behavior
To Reproduce Steps to reproduce the behavior
Generate mocks for this interface
Then write this test
You will reproduce the above error, which is very confusing. It's showing that Got and Want are the same, even though they actually aren't.
Additional Information
go.uber.org/mock v0.2.0
go version go1.20.6 darwin/arm64
The text was updated successfully, but these errors were encountered: