withmock
withmock copied to clipboard
Won't work with mgo
Not sure if related: It seems mgo has a .go file with imported but unused packages (/internal/scram/scram.go).
-debug output:
ERROR(installImports:GenPkg:m.file): EOF
+1, encountering this error, and not using mgo. I've tried mocking several different packages and always fail with EOF
» mocktest -debug
ERROR(AddPackage:installImports:GenPkg:m.file): EOF