golang / mock

GoMock is a mocking framework for the Go programming language.
Apache License 2.0
9.28k stars 610 forks source link

dot imports fail for mockgen in source mode #201

Closed aksdb closed 5 years ago

aksdb commented 6 years ago

When importing a package into the current namespace (dot import), local identifiers get prepended with that package (which is wrong) in the generated mock source.

Even worse: when having two or more dot imports, mockgen fails right away: imported package collision: "" imported twice

poy commented 5 years ago

fixed with 5f3a40bc29aa3f8115e37b1ae65fe38747f39816