Skip to content

refactor: improve Slice logic and fix docstring#785

Merged
samber merged 1 commit intosamber:masterfrom
d-enk:improve-slice
Feb 8, 2026
Merged

refactor: improve Slice logic and fix docstring#785
samber merged 1 commit intosamber:masterfrom
d-enk:improve-slice

Conversation

@d-enk
Copy link
Contributor

@d-enk d-enk commented Jan 27, 2026

  • Fix docstring: clarify Slice returns a slice view, not a copy
  • Reorder boundary checks to use else-if
  • Add test case for negative start and end indices

- Fix docstring: clarify Slice returns a slice view, not a copy
- Reorder boundary checks to use else-if
- Add test case for negative start and end indices
@codecov
Copy link

codecov bot commented Jan 27, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 94.29%. Comparing base (8211383) to head (d983b58).
⚠️ Report is 5 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #785      +/-   ##
==========================================
+ Coverage   94.18%   94.29%   +0.10%     
==========================================
  Files          18       18              
  Lines        2873     2873              
==========================================
+ Hits         2706     2709       +3     
+ Misses        151      149       -2     
+ Partials       16       15       -1     
Flag Coverage Δ
unittests 94.29% <100.00%> (+0.10%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ 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.

@samber samber merged commit ac3221d into samber:master Feb 8, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants