Skip to content

Add test coverage for splits_of_paged #325

Description

@Spagero763

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.

Metadata

Metadata

Assignees

Labels

GrantFox OSSIssue tracked in GrantFox OSSMaybe RewardedIssue may be eligible for a GrantFox rewardOfficial Campaign | FWC26Campaign: Official Campaign | FWC26help wantedExtra attention is neededrustPull requests that update rust code

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions