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
I'm trying to generate an interface for a struct in an external library, but they define additional methods in test file, and I don't want the generated interface to have those.
e.g.
// --- external.go ---package external
typeTheirStructstruct{}
// we want thisfunc (tTheirStruct) SomeMethod() {
}
// --- external_test.go ---package external
// but we do not want thisfunc (tTheirStruct) SomeTestMethod() {
}
Would be great if this tool automatically skips test file defined methods, or have an -exclude flag that takes names of methods to be skipped.
The text was updated successfully, but these errors were encountered:
I'm trying to generate an interface for a struct in an external library, but they define additional methods in test file, and I don't want the generated interface to have those.
e.g.
Would be great if this tool automatically skips test file defined methods, or have an -exclude flag that takes names of methods to be skipped.
The text was updated successfully, but these errors were encountered: