-
Type:
Improvement
-
Resolution: Unresolved
-
Priority:
Unknown
-
None
-
Component/s: BSON
-
None
-
Needed
-
Summary
Improve the negative cases for decoding BSON Binary Vector subtype in tests in specifications/source/bson-binary-vector/tests
- For "FLOAT32 with padding", "INT8 with padding", "Padding specified with no vector data PACKED_BIT", and "Exceeding maximum padding PACKED_BIT", we also need to verify decoding from a given canonical_bson into its vector Binary, which should raise an exception when attempting to deserialize it into the corresponding numeric values.
- We need test cases for FLOAT32 vectors with insufficient data length (not a multiple of 4 bytes as a float32), which should raise an exception when attempting to deserialize it into the float32 sequence.
RP: https://github.com/mongodb/specifications/pull/1750
Motivation
Who is the affected end user?
Drivers who are implementing the BSON Binary Vector subtype support.
How does this affect the end user?
Improve the negative cases for decoding in tests in specifications/source/bson-binary-vector/tests
Is this ticket only for tests?
test improvements
Acceptance Criteria
Deserializing the updated canonical_bson into numeric values should raise an exception.
- split to
-
PHPC-2514 Improve JSON tests for Binary Vector Subtype
-
- Backlog
-
-
CXX-3216 Improve JSON tests for Binary Vector Subtype
-
- Backlog
-
-
JAVA-5782 Improve JSON tests for Binary Vector Subtype
-
- Backlog
-
-
RUBY-3618 Improve JSON tests for Binary Vector Subtype
-
- Backlog
-
-
PYTHON-5126 Improve JSON tests for Binary Vector Subtype
-
- In Code Review
-
-
CDRIVER-5886 Improve JSON tests for Binary Vector Subtype
-
- Closed
-
-
CSHARP-5484 Improve JSON tests for Binary Vector Subtype
-
- Closed
-
-
GODRIVER-3481 Improve JSON tests for Binary Vector Subtype
-
- Closed
-
-
MOTOR-1429 Improve JSON tests for Binary Vector Subtype
-
- Closed
-
-
NODE-6735 Improve JSON tests for Binary Vector Subtype
-
- Closed
-
-
RUST-2149 Improve JSON tests for Binary Vector Subtype
-
- Closed
-