Issue 2110 multisig quorum tests - #2363
Merged
Baskarayelu merged 2 commits intoJul 28, 2026
Merged
Conversation
Add test for timestamp > due_date boundary condition to complete coverage of insurance-claim guard (within, at, past limit). Closes QuickLendX#2101
Add test_verify_op_over_quorum to verify that verify_op succeeds when more signatures than the threshold are provided. This completes the test coverage for all quorum boundary cases: - Below quorum: test_verify_op_insufficient_signatures - At quorum: test_verify_op_success - Over quorum: test_verify_op_over_quorum (new) Closes QuickLendX#2110
|
@boalambo Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits. You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀 |
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.
📝 Description
Adds test coverage for the over quorum boundary case in the multisig-signature helper (verify_op). This completes the test coverage for all quorum boundary cases as specified in issue #2110.
🎯 Type of Change
🔧 Changes Made
Files Modified
New Files Added
Key Changes
🧪 Testing
Test Coverage
The multisig-signature helper now has complete quorum boundary coverage:
NotEnoughSignatures)📋 Contract-Specific Checks
#![no_std]discipline (no std calls)Contract Testing Details
Test uses the same pattern as existing multisig tests:
📋 Review Checklist
🔍 Code Quality
🚀 Performance & Security
📚 Documentation
🔗 Related Issues
Closes #2110
📋 Additional Notes
Important: Cannot run
cargo testorcargo clippydue to 96 pre-existing compilation errors in lib.rs that are completely unrelated to the multisig module. These errors include:BatchSizeExceededvariant inQuickLendXErrorInvoice::newandset_protocol_limitscallsNone of these errors reference multisig.rs or test_multisig.rs, confirming this change is not the cause. The test syntax is correct and follows the exact same pattern as existing tests in the file. Once the pre-existing errors are resolved, CI should pass.
🧪 How to Test
Once pre-existing compilation errors are fixed:
cargo test -p quicklendx-contracts test_verify_op_over_quorumcargo test -p quicklendx-contracts test_multisigcargo build --target wasm32-unknown-unknown --release -p quicklendx-contractscargo clippy --workspace --all-targets -- -D warnings📸 Screenshots (if applicable)
Not applicable (test code change)
None
🔄 Migration Steps (if applicable)
None