Skip to content

Conversation

@gregor-i
Copy link

Exceptions caused by missing required fields don't mention which fields were missing, even though this information is easy to provide

@thesamet
Copy link
Contributor

Can you add unit tests? They can be based on e2e/src/main/protobuf/google/protobuf/unittest.proto and use TestRequired, TestRequiredForeign, and TestRequiredOneof, it should exercise the cases were one or more than one fields are missing.

@gregor-i
Copy link
Author

I've added some test cases. I didn't know how to construct incomplete messages, so my test data setup may be overcomplicated.

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