Skip to content
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

validation of fields that may refer to map entry message works without source #41

Merged
merged 3 commits into from
Sep 21, 2022

Conversation

jhump
Copy link
Member

@jhump jhump commented Sep 20, 2022

There was logic in here. But I happened to re-read while doing some refactoring in #40 and saw that it was just wrong.

So I added some tests (yay!) as well as some extra conditions to make this check bullet-proof.

t.Run(name, func(t *testing.T) {
t.Parallel()

if strings.HasPrefix(name, "fails") {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can remove this?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Doh, yes. Fixed.

Base automatically changed from jh/fix-race to main September 21, 2022 13:44
@jhump jhump enabled auto-merge (squash) September 21, 2022 13:56
@jhump jhump merged commit 3a36f19 into main Sep 21, 2022
@jhump jhump deleted the jh/fix-map-validation branch September 21, 2022 13:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants