Skip to content

Add unit tests for EciesWithAwsKmsSavedKey#379

Open
vasiliy-mikhailov wants to merge 1 commit into
dschadow:mainfrom
vasiliy-mikhailov:add-EciesWithAwsKmsSavedKey-tests
Open

Add unit tests for EciesWithAwsKmsSavedKey#379
vasiliy-mikhailov wants to merge 1 commit into
dschadow:mainfrom
vasiliy-mikhailov:add-EciesWithAwsKmsSavedKey-tests

Conversation

@vasiliy-mikhailov

@vasiliy-mikhailov vasiliy-mikhailov commented Jun 24, 2026

Copy link
Copy Markdown

Additive unit tests for EciesWithAwsKmsSavedKey — edge cases and current behavior pinned with explicit assertions. No existing test or production code changed (append-only).

Verified green under Java 25 (mvn -pl crypto-tink test -Dtest=EciesWithAwsKmsSavedKeyTest → Tests run: 20, Failures: 0, Errors: 0). On this class the additions raise line coverage from 18 to 18/18 lines and the PIT mutation kill-rate from 36 to 37 mutants.


How this was produced

This PR was generated with an AI-assisted pipeline built around mutation testing (PIT). The pipeline mutates the target class (flipping conditions and changing boundary/edge cases) and runs the existing tests against each mutant. Where a mutant survives (the existing tests do not catch that edge case), it writes a focused test for that case and reruns PIT to confirm the new test actually kills that specific mutant. So every added test is verified to catch a concrete edge case the suite missed before, rather than being speculative or redundant. The change is additive only (no production code modified), and the module builds green under its CI JDK.

Additive unit tests only - no existing test or production code changed.

Signed-off-by: vasiliy-mikhailov <vasiliy-mikhailov@users.noreply.github.com>
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