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
Given there is a
type CamelCaseType string
in display.go, then
display.go
cd generate_test_mocks/gomock_source/ ginkgo
will produce:
package matchers import ( "reflect" "github.com/petergtz/pegomock" "" ) func AnyCamelCaseType() CamelCaseType { pegomock.RegisterMatcher(pegomock.NewAnyMatcher(reflect.TypeOf((*(CamelCaseType))(nil)).Elem())) var nullValue CamelCaseType return nullValue } func EqCamelCaseType(value CamelCaseType) CamelCaseType { pegomock.RegisterMatcher(&pegomock.EqMatcher{Value: value}) var nullValue CamelCaseType return nullValue }
i.e. an empty import.
Maybe the GoMock source parsing should be abandoned any favor of the xtools method.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Given there is a
in
display.go
, thencd generate_test_mocks/gomock_source/ ginkgo
will produce:
i.e. an empty import.
Maybe the GoMock source parsing should be abandoned any favor of the xtools method.
The text was updated successfully, but these errors were encountered: