Skip to content

test: cover min revenue threshold boundaries in report_revenue#397

Merged
thlpkee20-wq merged 2 commits into
RevoraOrg:masterfrom
daree-dev:feat/min-revenue-threshold-tests
May 29, 2026
Merged

test: cover min revenue threshold boundaries in report_revenue#397
thlpkee20-wq merged 2 commits into
RevoraOrg:masterfrom
daree-dev:feat/min-revenue-threshold-tests

Conversation

@daree-dev
Copy link
Copy Markdown
Contributor

Closes #366
Adds focused boundary matrix for the min-revenue-threshold path in report_revenue (issue #366):

  • threshold==0 (default): any non-negative amount accepted
  • amount==threshold-1: rev_below emitted, audit/state unchanged
  • amount==threshold: accepted (inclusive boundary), audit updated
  • amount==threshold+1: accepted, audit updated
  • reset threshold to 0: re-enables skipped period for reporting
  • override_existing=true below threshold: bypasses check, rev_ovrd emitted
  • get/set round-trip: stored value reflects each set call

Security: override path intentionally bypasses the threshold so issuers can correct already-persisted periods regardless of current threshold.

Adds focused boundary matrix for the min-revenue-threshold path in
report_revenue (issue RevoraOrg#366):

- threshold==0 (default): any non-negative amount accepted
- amount==threshold-1: rev_below emitted, audit/state unchanged
- amount==threshold: accepted (inclusive boundary), audit updated
- amount==threshold+1: accepted, audit updated
- reset threshold to 0: re-enables skipped period for reporting
- override_existing=true below threshold: bypasses check, rev_ovrd emitted
- get/set round-trip: stored value reflects each set call

Security: override path intentionally bypasses the threshold so issuers
can correct already-persisted periods regardless of current threshold.
@drips-wave
Copy link
Copy Markdown

drips-wave Bot commented May 28, 2026

@daree-dev 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! 🚀

Learn more about application limits

@thlpkee20-wq thlpkee20-wq merged commit 96f1eff into RevoraOrg:master May 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add get_min_revenue_threshold and report_revenue interaction tests for boundary amounts

2 participants