Join our community: https://t.me/+DOylgFv1jyJlNzM0
Description
pause_stream and resume_stream are implemented but have no tests. Bugs here silently over or under-pay recipients by miscalculating paused time.
Test Cases Needed
test_pause_stops_claimable_accrual
test_resume_extends_end_time_by_pause_duration
test_pause_by_non_sender_fails
test_resume_by_non_sender_fails
test_cannot_pause_already_paused_stream
test_cannot_resume_active_stream
test_cannot_pause_completed_stream
test_withdraw_while_paused_claims_only_pre_pause_accrual
Files
contracts/stream_contract/src/test.rs
Acceptance Criteria
Description
pause_streamandresume_streamare implemented but have no tests. Bugs here silently over or under-pay recipients by miscalculating paused time.Test Cases Needed
test_pause_stops_claimable_accrualtest_resume_extends_end_time_by_pause_durationtest_pause_by_non_sender_failstest_resume_by_non_sender_failstest_cannot_pause_already_paused_streamtest_cannot_resume_active_streamtest_cannot_pause_completed_streamtest_withdraw_while_paused_claims_only_pre_pause_accrualFiles
contracts/stream_contract/src/test.rsAcceptance Criteria
cargo testclean