-
Notifications
You must be signed in to change notification settings - Fork 689
New issue
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
Migrate to new Mockery config #5684
Conversation
Hi @harshil1973! Welcome to our community and thank you for opening your first Pull Request. Someone will review it soon. Thank you for committing to making Contour better. You can also join us on our mailing list and in our channel in the Kubernetes Slack Workspace |
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #5684 +/- ##
=======================================
Coverage 78.59% 78.59%
=======================================
Files 138 138
Lines 19150 19150
=======================================
Hits 15051 15051
Misses 3812 3812
Partials 287 287 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @harshil1973, this looks like a great start. We'll also need to change how we invoke the mock generation -- currently, we're calling go generate
(
Lines 271 to 274 in acc15db
.PHONY: generate-go | |
generate-go: | |
@echo "Generating mocks..." | |
@go generate ./... |
go run github.com/vektra/mockery/v2
.
A good way to test this is to delete the existing mock Go files, then run make generate
, and ensure they're recreated with no changes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we need to add an invocation of mockery
in our generate-go
make target, go generate
doesn't actually run it anymore
jinx! |
ae99b3f
to
f2e061e
Compare
Signed-off-by: Harshil Patel <harshilpatel1973@gmail.com>
f2e061e
to
c39d302
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice, LGTM!
Closes #5564.