Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

GODRIVER-3307 Simplify MarshalValue and UnmarshalValue test case setup. #1914

Merged

Conversation

matthewdale
Copy link
Collaborator

@matthewdale matthewdale commented Jan 1, 2025

GODRIVER-3307

Summary

  • Use keyed structs for all MarshalValue test cases to make them easier to read.
  • Use only struct literals instead of functions to define the MarshalValue test cases.
  • Don't use Marshal when testing MarshalValue to prevent bugs in Marshal from masking bugs in MarshalValue.
  • Remove unnecessary subtest nesting in TestMarshalValue.

Background & Motivation

@mongodb-drivers-pr-bot mongodb-drivers-pr-bot bot added the priority-3-low Low Priority PR for Review label Jan 1, 2025
Copy link
Contributor

API Change Report

No changes found!

@matthewdale matthewdale force-pushed the godriver3307-refactor-test-marshal branch from e0ea3b6 to 702e571 Compare January 24, 2025 02:32
@matthewdale matthewdale marked this pull request as ready for review January 24, 2025 02:52
@matthewdale matthewdale merged commit f30efd2 into mongodb:master Feb 5, 2025
33 of 35 checks passed
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
priority-3-low Low Priority PR for Review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants