Skip to content

test(events): cancel + refund batch — process_cancel pagination & pro-rata refunds #28

Description

@0xdevcollins

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

  • New tests/cancel_refund.rs covering every function in scope.
  • Happy path + each Error variant + edge cases + auth-rejection (+ idempotency where relevant).
  • cargo test --all passes; PR links this issue.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions