Skip to content

fix(host-contracts): rename KMSVerifier test functions to match actual function#1604

Merged
enitrat merged 1 commit intomainfrom
fix/kmsverifier-test-names
Dec 18, 2025
Merged

fix(host-contracts): rename KMSVerifier test functions to match actual function#1604
enitrat merged 1 commit intomainfrom
fix/kmsverifier-test-names

Conversation

@enitrat
Copy link
Copy Markdown
Contributor

@enitrat enitrat commented Dec 17, 2025

Summary

  • Rename test functions from test_VerifyInputEIP712KMSSignatures* to test_VerifyDecryptionEIP712KMSSignatures*
  • Update NatSpec comments to reference the correct function name

Context

The KMSVerifier test file contains several test functions that are named test_VerifyInputEIP712KMSSignatures* but they actually test the verifyDecryptionEIP712KMSSignatures function. This naming inconsistency is confusing and doesn't accurately describe what the tests are verifying.

The tests verify decryption signature verification, not input verification (which is handled by the separate InputVerifier contract).

Renamed tests:

  • test_VerifyInputEIP712KMSSignaturesWorktest_VerifyDecryptionEIP712KMSSignaturesWork
  • test_VerifyInputEIP712KMSSignaturesFailAsExpectedIfDigestIsInvalidtest_VerifyDecryptionEIP712KMSSignaturesFailAsExpectedIfDigestIsInvalid
  • test_VerifyInputEIP712KMSSignaturesFailAsExpectedIfNoSignerAddedtest_VerifyDecryptionEIP712KMSSignaturesFailAsExpectedIfNoSignerAdded
  • test_VerifyInputEIP712KMSSignaturesFailAsExpectedIfNoSignatureProvidedtest_VerifyDecryptionEIP712KMSSignaturesFailAsExpectedIfNoSignatureProvided
  • test_VerifyInputEIP712KMSSignaturesFailAsExpectedIfNumberOfSignaturesIsInferiorToThresholdtest_VerifyDecryptionEIP712KMSSignaturesFailAsExpectedIfNumberOfSignaturesIsInferiorToThreshold
  • test_VerifyInputEIP712KMSSignaturesFailAsExpectedIfSameSignerIsUsedTwicetest_VerifyDecryptionEIP712KMSSignaturesFailAsExpectedIfSameSignerIsUsedTwice
  • test_VerifyInputEIP712KMSSignaturesFailsIfEmptyDecryptionProoftest_VerifyDecryptionEIP712KMSSignaturesFailsIfEmptyDecryptionProof
  • test_VerifyInputEIP712KMSSignaturesFailsIfDeserializingDecryptionProofFailtest_VerifyDecryptionEIP712KMSSignaturesFailsIfDeserializingDecryptionProofFail

Test plan

  • Verify renamed tests compile correctly
  • No functional changes, only naming updates

@enitrat enitrat requested review from a team as code owners December 17, 2025 20:23
@cla-bot cla-bot bot added the cla-signed label Dec 17, 2025
…l function

Rename test functions from `test_VerifyInputEIP712KMSSignatures*` to
`test_VerifyDecryptionEIP712KMSSignatures*` to accurately reflect the
actual function being tested (`verifyDecryptionEIP712KMSSignatures`).

Also update NatSpec comments that incorrectly referenced the old name.
@enitrat enitrat force-pushed the fix/kmsverifier-test-names branch from 778690d to ee930f4 Compare December 17, 2025 20:25
@mergify
Copy link
Copy Markdown

mergify bot commented Dec 17, 2025

🧪 CI Insights

Here's what we observed from your CI run for ee930f4.

🟢 All jobs passed!

But CI Insights is watching 👀

Copy link
Copy Markdown
Contributor

@melanciani melanciani left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good catch ! thanks

@enitrat enitrat merged commit 81ecadb into main Dec 18, 2025
66 checks passed
@enitrat enitrat deleted the fix/kmsverifier-test-names branch December 18, 2025 11:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants