Closed jtestard closed 7 years ago
The error message with #129 would be:
--- FAIL: TestMyThing (0.00s)
controller.go:148: Unexpected call to *lib_mock.MockMyInterface.SomeMethod([1 second]) at /home/ubuntu/workspace/src/test/lib_test.go:18 because:
Expected call at /home/ubuntu/workspace/src/test/lib_test.go:15 has already been called the max number of times.
FAIL
Mocking a method using
EXPECT
gives a confusing error messages when the call count for the method does not match the number of occurrences of this message in the code but the method signatures match.A more descriptive error message would be most helpful.
Output
lib.go
lib_test.go
mockgen