test(drive): add comprehensive tests for verify module#3233
Conversation
Add 156 tests covering the verify directory: - 72 version-dispatch tests for UnknownVersionMismatch error branches - 84 prove-then-verify roundtrip tests for v0 implementations Categories covered: identity, contract, tokens, voting, system, group, shielded, address_funds, document, single_document, and state_transition. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
Warning Rate limit exceeded
⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (112)
✨ Finishing Touches🧪 Generate unit tests (beta)
📝 Coding Plan for PR comments
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## v3.1-dev #3233 +/- ##
=============================================
+ Coverage 50.39% 63.69% +13.29%
=============================================
Files 3089 1979 -1110
Lines 219104 169340 -49764
=============================================
- Hits 110426 107860 -2566
+ Misses 108678 61480 -47198
🚀 New features to boost your workflow:
|
|
✅ DashSDKFFI.xcframework built for this PR.
SwiftPM (host the zip at a stable URL, then use): .binaryTarget(
name: "DashSDKFFI",
url: "https://your.cdn.example/DashSDKFFI.xcframework.zip",
checksum: "c1533fef6ca721ba32b2ac657b9b421dc01aa58bdb84a968dd25db033da93953"
)Xcode manual integration:
|
|
@CodeRabbit review |
✅ Actions performedReview triggered.
|
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Issue being fixed or feature implemented
Improve test coverage for
packages/rs-drive/src/verify/to reach 95%+. The verify module had minimal test coverage despite containing ~12,900 lines of proof verification logic.What was done?
Added 156 tests across 112 files in the verify directory:
Phase 1: Version-dispatch tests (72 tests)
UnknownVersionMismatcherror branch for all ~55 version-dispatchmod.rsfilesPhase 2: Prove-then-verify roundtrip tests (84 tests)
How Has This Been Tested?
All tests run in ~2.6 seconds.
Breaking Changes
None.
Checklist:
For repository code-owners and collaborators only