test: add should_panic regressions for escrow error paths#451
Conversation
|
@Abolax123 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! 🚀 |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughAdds panic-based edge-case tests for escrow creation and release, covering zero-amount creation, self-escrow creation, and release of a missing escrow. ChangesEscrow edge-case coverage
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~5 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
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 |
Summary
#[should_panic]regression tests for escrow error conditionsWhy
This addresses issue #398 by ensuring error conditions are exercised directly rather than only validating the success path.
Changes
Testing
Local Rust test execution could not be run in this environment because the Cargo/Rust toolchain is not available.
Please run:
cargo test -p acbu_escrow --test test_edge_casesCloses No
#[should_panic]tests for error conditions #398Summary by CodeRabbit