This repository has been archived by the owner on Jun 27, 2023. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
gomock/controller: use skip additional frame
In 8321731, the callerInfo call gets nested within an additional function call, but the frame skip isn't updated. When used with mockgen, this causes the location frame to unhelpfully point to the generated mock instead of the callsite in the user's test. Before: ... at .../mocks/mock_ecriface/mock_ECRAPI.go:612 because: there are no expected calls of... After: ... at .../example_test.go:29 because: there are no expected calls of...
- Loading branch information