We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pegomock CLI generates invalid matchers when interface methods reference structures from the same package.
Library version: 2.9.0 Repro file:
//go:generate pegomock generate $GOFILE --output=${GOPACKAGE}mock/${GOFILE}_gen.go --package=${GOPACKAGE}mock --generate-matchers package issue type Arg struct{} type Provider interface { Get(a *Arg) }
One of invalid matchers:
package matchers import ( "github.com/petergtz/pegomock" "reflect" "" ) func AnyPtrToArg() *Arg { pegomock.RegisterMatcher(pegomock.NewAnyMatcher(reflect.TypeOf((*(*Arg))(nil)).Elem())) var nullValue *Arg return nullValue }
All structures from source package were imported with invalid import ""
""
The text was updated successfully, but these errors were encountered:
Looks like consequence of #94
Sorry, something went wrong.
Duplicate #53
No branches or pull requests
Pegomock CLI generates invalid matchers when interface methods reference structures from the same package.
Library version: 2.9.0
Repro file:
One of invalid matchers:
All structures from source package were imported with invalid import
""
The text was updated successfully, but these errors were encountered: