-
Notifications
You must be signed in to change notification settings - Fork 138
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
feat: Add rules for AIP-164 Undelete #676
Conversation
for _, test := range tests { | ||
t.Run(test.testName, func(t *testing.T) { | ||
// Create a MethodOptions with the annotation set. | ||
opts := &dpb.MethodOptions{} |
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 am surprised you went this route and not testutils.ParseProto3Tmpl
, but it is fine as it is.
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 just copied it from one of the other tests that was similar. It'd be good at some point to upgrade all the tests to use ParseProto3Tmpl
.
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.
Ah, that makes sense. Yeah, I wrote about 20 or so rules before writing ParseProto3Tmpl
, which required me to get a change in to the underlying protoreflect library.
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 really miss g4 cp
in GitHub's PR UI, to make these changes more obvious.
Fixes #666, #667, #668.