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
--name does not work as regex
2.1.4.0
1.18
A mock is generated
No mock generated as mockery prints
no matches found: --name=^.*SomethingThatMachersAnInterface
It think it may be related to this https://github.com/vektra/mockery/blob/master/cmd/mockery.go#L180 If name contains regex chars filter never assumes value
The text was updated successfully, but these errors were encountered:
Have you tried wrapping in quotes? Works fine for me.
mockery --name="^.*SomethingThatMachersAnInterface"
Sorry, something went wrong.
The latest release includes this PR which may help.
No branches or pull requests
Description
--name does not work as regex
Mockery Version
2.1.4.0
Golang Version
1.18
Installation Method
Steps to Reproduce
Expected Behavior
A mock is generated
Actual Behavior
No mock generated as mockery prints
It think it may be related to this
https://github.com/vektra/mockery/blob/master/cmd/mockery.go#L180
If name contains regex chars filter never assumes value
The text was updated successfully, but these errors were encountered: