Skip to content

test: implement test suites for issues #473-476 - #535

Merged
Chuks-coderr merged 6 commits into
SoroStream:mainfrom
kaivegascod-a11y:feat/tests-473-474-475-476
Aug 30, 2026
Merged

test: implement test suites for issues #473-476#535
Chuks-coderr merged 6 commits into
SoroStream:mainfrom
kaivegascod-a11y:feat/tests-473-474-475-476

Conversation

@kaivegascod-a11y

Copy link
Copy Markdown
Contributor

Summary

Implement comprehensive test suites for four feature requests:

Changes

  • Created grace_period_tests.rs: Tests for withdrawal grace period after stream expiry
  • Created stream_nft_tests.rs: Tests for NFT minting and recipient transfer
  • Created paginated_recipient_tests.rs: Tests for cursor-based pagination
  • Created oracle_rate_adjustment_tests.rs: Tests for oracle price-driven rate updates
  • Updated lib.rs: Registered new test modules

Test Coverage

Each test module includes multiple test cases covering:

  • Core functionality validation
  • Edge cases and boundary conditions
  • Authorization and access control
  • Data preservation and consistency

Closes #473
Closes #474
Closes #475
Closes #476

- Add tests for withdrawal during grace period after stream expiry
- Test grace period expiration and sender reclaim capability
- Verify default grace period value and withdrawal amount tracking
…m#474)

- Add tests for NFT creation on stream initialization
- Test NFT-based recipient transfer and stream ownership updates
- Verify secondary market compatibility and term preservation
…oroStream#475)

- Add tests for pagination with cursor-based iteration
- Test page size enforcement and complete stream iteration
- Verify ordering by creation ledger descending and cursor validation
…eam#476)

- Add tests for rate adjustment maintaining USD-denominated value
- Test max change percentage bounds and price multiplier calculations
- Verify deposit preservation and sender authorization requirements
Add module declarations for grace_period_tests, stream_nft_tests,
paginated_recipient_tests, and oracle_rate_adjustment_tests to compile
test cases for issues SoroStream#473, SoroStream#474, SoroStream#475, and SoroStream#476
@drips-wave

drips-wave Bot commented Aug 29, 2026

Copy link
Copy Markdown

@kaivegascod-a11y 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

@Chuks-coderr
Chuks-coderr merged commit 17dee0d into SoroStream:main Aug 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment