Skip to content

GODRIVER-1805 Add tests for unmarshalling BSON with undefined fields #552

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

Merged
merged 2 commits into from
Dec 14, 2020
Merged

GODRIVER-1805 Add tests for unmarshalling BSON with undefined fields #552

merged 2 commits into from
Dec 14, 2020

Conversation

benjirewis
Copy link
Contributor

GODRIVER-1805

Adds tests for unmarshalling BSON with undefined fields. Faulty behavior was recently discovered when unmarshalling extended JSON with undefined fields; this behavior was fixed in 1235, and test coverage was added. The same faulty behavior does not exist for BSON, but these tests should cover any theoretical value_reader#Skip() errors.

@benjirewis benjirewis marked this pull request as ready for review December 10, 2020 22:13
Copy link
Contributor

@divjotarora divjotarora left a comment

Choose a reason for hiding this comment

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

Thanks for adding these tests! I'm glad there were no bugs found and having the tests gives us more confidence if we need to make changes to this code in the future.

@benjirewis benjirewis merged commit 8cceae1 into mongodb:master Dec 14, 2020
@benjirewis benjirewis deleted the bsonSkipUndefinedFieldTests.1805 branch December 14, 2020 22:02
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.

4 participants