Skip to content

test: address test coverage gaps from ANALYSIS.md section 4.2#18

Merged
dieppa merged 1 commit into
masterfrom
fix/analysis_test_coveage
Mar 3, 2026
Merged

test: address test coverage gaps from ANALYSIS.md section 4.2#18
dieppa merged 1 commit into
masterfrom
fix/analysis_test_coveage

Conversation

@dieppa

@dieppa dieppa commented Mar 2, 2026

Copy link
Copy Markdown
Member

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).

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).
@dieppa dieppa merged commit c925833 into master Mar 3, 2026
3 of 4 checks passed
@dieppa dieppa deleted the fix/analysis_test_coveage branch March 3, 2026 18:14
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.

1 participant