Context
splits_of_paged has no tests. Pagination logic is exactly the kind of code that silently breaks at its boundaries. See splits_of_paged in contracts/splitter/src/lib.rs.
Acceptance criteria
- Tests cover: start beyond the list length, limit of 0, a page that runs past the end of the list, and a page that lands exactly on the last item.
Per CONTRIBUTING.md: one concern, tests required for behaviour changes. CI gate: cargo fmt / cargo clippy --all-targets -- -D warnings / cargo test for Rust, npm run build for the sdk/app.
Context
splits_of_paged has no tests. Pagination logic is exactly the kind of code that silently breaks at its boundaries. See splits_of_paged in contracts/splitter/src/lib.rs.
Acceptance criteria
Per CONTRIBUTING.md: one concern, tests required for behaviour changes. CI gate:
cargo fmt/cargo clippy --all-targets -- -D warnings/cargo testfor Rust,npm run buildfor the sdk/app.