You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// GeneratePrologue generates the prologue of the mock.func (g*Generator) GeneratePrologue(ctx context.Context, pkgstring) {
g.populateImports(ctx)
ifg.config.InPackage {
g.printf("package %s\n\n", g.iface.Pkg.Name())
} else {
g.printf("package %v\n\n", pkg)
}
g.generateImports(ctx)
g.printf("\n")
}
The outpkg parameter is completely ignored in this case, which prevents us from giving the mocks a package name like original_pkg_test. I will create a parameter that allows us to override this behavior and always respect outpkg. Sadly, we have to retain backwards compatability.
The text was updated successfully, but these errors were encountered:
This happens in generator.go:
The
outpkg
parameter is completely ignored in this case, which prevents us from giving the mocks a package name likeoriginal_pkg_test
. I will create a parameter that allows us to override this behavior and always respectoutpkg
. Sadly, we have to retain backwards compatability.The text was updated successfully, but these errors were encountered: