Tags: vvkh/mock
Tags
fix issues related to source package imports (golang#507) Fixes: golang#505 Fixes: golang#515
Improve performance of mock generation (golang#397) Optimizes resolving correct package name with `go list` command. Instead of calling go list for each import in file, now we do it for all imports in one call.
fix not resolving go module major versions (golang#385) This change now makes use of go list to check for package names. This tool is module aware and allows for better named imports. To test this change I needed to also add a small package to our mod file. To keep this import from disappearing from go.mod I made use of the tools file strategy. Note this change will change the import names in generated code. This should not be a breaking change in user code. Fixes golang#326
mockgen: use Controller.Helper() in generated mocks Using T.Helper() better directs the callstack to point at the offending line in the production code. fixes golang#239
PreviousNext