moq/internal/registry
Suhas Karanth fe0d4f3360
Fix var name generation to avoid conflict (#145)
When the type and the package name is the same for an anonymous
parameter (ex: time.Time), and there are more than 1 such parameters,
the generated name for both was the same. And the generated code would
not be valid.

Fix the bug by ensuring the parameter name does not conflict with
package imports first before checking against other parameter names.
2021-02-14 13:10:16 +00:00
..
method_scope.go Fix var name generation to avoid conflict (#145) 2021-02-14 13:10:16 +00:00
package.go Internal registry for disambiguated imports, vars (#141) 2021-02-01 19:20:20 +00:00
registry.go Internal registry for disambiguated imports, vars (#141) 2021-02-01 19:20:20 +00:00
var.go Fix var name generation to avoid conflict (#145) 2021-02-14 13:10:16 +00:00