test: address test coverage gaps from ANALYSIS.md section 4.2#18
Merged
Conversation
Add 28 new tests covering transactional path (P0), options integration (P1), and DDL operator gaps (P2): - Transactional path: 11 tests across InsertOperatorTransactionalTest, UpdateOperatorTransactionalTest, DeleteOperatorTransactionalTest exercising ClientSession commit, abort, and session-with-options branches. AbstractTransactionalOperatorTest provides shared lifecycle. - validateSession: 2 tests in MongoChangeTemplateTest verify IllegalArgumentException for transactional changes with null session. - Options integration: 9 end-to-end tests for bypassDocumentValidation, ordered, expireAfterSeconds, sparse, partialFilterExpression, and collation with case-insensitive matching. - DDL gaps: 8 tests for drop idempotency, createIndex idempotency/conflict, and modifyCollection enforcement, metadata assertions, partial parameters, and re-application. Update ANALYSIS.md sections 4.1, 4.2, and 10 to reflect resolved gaps and updated test coverage score (7→8, total 7.80→8.00).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add 28 new tests covering transactional path (P0), options integration
(P1), and DDL operator gaps (P2):
UpdateOperatorTransactionalTest, DeleteOperatorTransactionalTest
exercising ClientSession commit, abort, and session-with-options
branches. AbstractTransactionalOperatorTest provides shared lifecycle.
IllegalArgumentException for transactional changes with null session.
ordered, expireAfterSeconds, sparse, partialFilterExpression, and
collation with case-insensitive matching.
idempotency/conflict, and modifyCollection enforcement, metadata
assertions, partial parameters, and re-application.
Update ANALYSIS.md sections 4.1, 4.2, and 10 to reflect resolved gaps
and updated test coverage score (7→8, total 7.80→8.00).