Skip to content

feat(tests): expand contract unit coverage and CI reporting#599

Merged
Vera3289 merged 3 commits into
Vera3289:mainfrom
DevKingOche:feature/579-comprehensive-unit-tests
Jun 27, 2026
Merged

feat(tests): expand contract unit coverage and CI reporting#599
Vera3289 merged 3 commits into
Vera3289:mainfrom
DevKingOche:feature/579-comprehensive-unit-tests

Conversation

@DevKingOche

Copy link
Copy Markdown
Contributor

Summary\n- expanded token contract test coverage for approve/transfer-from and admin-only mint/burn paths\n- added CI coverage reporting via cargo-llvm-cov\n\n## Testing\n- cargo test -p paystream-stream --test regression_suite\n- cargo test\n\nFixes #579

DevKingOche and others added 3 commits June 24, 2026 14:41
- Test all contract functions: initialize, create_stream, withdraw,
  top_up, pause_stream, resume_stream, cancel_stream, get_stream,
  claimable, stream_count
- Test state transitions: Active→Paused→Active, Active→Cancelled,
  Active→Exhausted
- Test access control: wrong employer/employee panics
- Test calculations: claimable cap, stop_time cap, multi-withdraw
- Test error conditions: zero deposit/rate, past stop_time,
  nothing to withdraw, double-pause, cancel already cancelled
- Test edge cases: multiple streams, cancel with zero claimable,
  withdraw past stop_time

Closes Vera3289#579
@drips-wave

drips-wave Bot commented Jun 27, 2026

Copy link
Copy Markdown

@DevKingOche 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

@Vera3289 Vera3289 merged commit 8305e4e into Vera3289:main Jun 27, 2026
4 of 21 checks passed
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.

2 participants