Part of #25 (contract test-coverage push).
events
How to test
- Reuse the crate's
tests/common.rs harness; add tests/cancel_refund.rs + a one-line mod cancel_refund; in tests/mod.rs.
- Template:
contracts/events/src/tests/contributions.rs.
- Run
cargo test -p boundless-events, then cargo test --all before the PR.
Acceptance criteria
Part of #25 (contract test-coverage push).
events
How to test
tests/common.rsharness; addtests/cancel_refund.rs+ a one-linemod cancel_refund;intests/mod.rs.contracts/events/src/tests/contributions.rs.cargo test -p boundless-events, thencargo test --allbefore the PR.Acceptance criteria
tests/cancel_refund.rscovering every function in scope.Errorvariant + edge cases + auth-rejection (+ idempotency where relevant).cargo test --allpasses; PR links this issue.