--- FAIL: Test (0.00s)
eg_test.go:14: Unexpected call to *eg.MockFoo.Foo([x]) at /src/eg_test.go:14 because:
expected call at /src/eg_test.go:12 doesn't match the argument at index 0.
Got: x
Want: is equal to %!s(MISSING)
controller.go:137: missing call(s) to *eg.MockFoo.Foo(is equal to %s) /src/eg_test.go:12
controller.go:137: aborting test due to missing call(s)
Having %!s(MISSING) unintendedly.
Expected behavior A clear and concise description of what you expected to
happen.
We sholud get:
--- FAIL: Test (0.00s)
eg_test.go:14: Unexpected call to *eg.MockFoo.Foo([x]) at /src/eg_test.go:14 because:
expected call at /src/eg_test.go:12 doesn't match the argument at index 0.
Got: x
Want: is equal to %s
controller.go:137: missing call(s) to *eg.MockFoo.Foo(is equal to %s) /src/eg_test.go:12
controller.go:137: aborting test due to missing call(s)
Actual behavior A clear and concise description of what the bug is.
With test code with gomock like below:
We get:
Having
%!s(MISSING)
unintendedly.Expected behavior A clear and concise description of what you expected to happen.
We sholud get:
To Reproduce Steps to reproduce the behavior
docker run --rm -v $PWD:/src -w /src golang go test
Additional Information
Triage Notes for the Maintainers