fix: prevent negative slice index when last exceeds items count #62

Merged
argoyle merged 1 commits from fix/negative-slice-index into main 2026-01-01 15:49:47 +00:00
argoyle commented 2026-01-01 14:09:22 +00:00 (Migrated from gitlab.com)
No description provided.
argoyle (Migrated from gitlab.com) scheduled this pull request to auto merge when all checks succeed 2026-01-01 14:09:31 +00:00
argoyle commented 2026-01-01 15:49:47 +00:00 (Migrated from gitlab.com)

mentioned in commit 718fb0b17c

mentioned in commit 718fb0b17cb073fa4650f704c1eda42f6673b71c
argoyle (Migrated from gitlab.com) merged commit 718fb0b17c into main 2026-01-01 15:49:47 +00:00
argoyle commented 2026-01-01 15:50:20 +00:00 (Migrated from gitlab.com)

Codecov Report

All modified and coverable lines are covered by tests.
Project coverage is 66.27%. Comparing base (02405c5) to head (bead25a).

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #61      +/-   ##
==========================================
+ Coverage   65.47%   66.27%   +0.80%     
==========================================
  Files           1        1              
  Lines          84       86       +2     
==========================================
+ Hits           55       57       +2     
  Misses         28       28              
  Partials        1        1              

View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
## [Codecov](https://app.codecov.io/gl/unboundsoftware/pagination/pull/61?dropdown=coverage&src=pr&el=h1&utm_medium=referral&utm_source=gitlab&utm_content=comment&utm_campaign=pr+comments&utm_term=unboundsoftware) Report :white_check_mark: All modified and coverable lines are covered by tests. :white_check_mark: Project coverage is 66.27%. Comparing base ([`02405c5`](https://app.codecov.io/gl/unboundsoftware/pagination/commit/02405c5ce1abb7af6235aaeb856aa697c325b191?dropdown=coverage&el=desc&utm_medium=referral&utm_source=gitlab&utm_content=comment&utm_campaign=pr+comments&utm_term=unboundsoftware)) to head ([`bead25a`](https://app.codecov.io/gl/unboundsoftware/pagination/commit/bead25aa6b8b5944be10097f149d761eb41a3724?dropdown=coverage&el=desc&utm_medium=referral&utm_source=gitlab&utm_content=comment&utm_campaign=pr+comments&utm_term=unboundsoftware)). <details><summary>Additional details and impacted files</summary> ```diff @@ Coverage Diff @@ ## main #61 +/- ## ========================================== + Coverage 65.47% 66.27% +0.80% ========================================== Files 1 1 Lines 84 86 +2 ========================================== + Hits 55 57 +2 Misses 28 28 Partials 1 1 ``` </details> [:umbrella: View full report in Codecov by Sentry](https://app.codecov.io/gl/unboundsoftware/pagination/pull/61?dropdown=coverage&src=pr&el=continue&utm_medium=referral&utm_source=gitlab&utm_content=comment&utm_campaign=pr+comments&utm_term=unboundsoftware). :loudspeaker: Have feedback on the report? [Share it here](https://gitlab.com/codecov-open-source/codecov-user-feedback/-/issues/4). <details><summary> :rocket: New features to boost your workflow: </summary> - :snowflake: [Test Analytics](https://docs.codecov.com/docs/test-analytics): Detect flaky tests, report on failures, and find test suite problems. </details>
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: unboundsoftware/pagination#62