Skip to content

fix: rename IsSortedByKey to IsSortedBy#735

Merged
samber merged 4 commits intosamber:masterfrom
NathanBaulch:issortedby
Nov 6, 2025
Merged

fix: rename IsSortedByKey to IsSortedBy#735
samber merged 4 commits intosamber:masterfrom
NathanBaulch:issortedby

Conversation

@NathanBaulch
Copy link
Contributor

Remove the "Key" suffix to improve consistency with other *By helpers that take an extra callback. IsSortedByKey has been left in place and deprecated. FYI, the it package already uses IsSortedBy.

frankywahl and others added 3 commits November 6, 2025 07:44
This will ignore the ordering of the final intersection. Especially
important when checking old versions of go that do not guarantee an order
when iterating through maps.
@codecov
Copy link

codecov bot commented Nov 6, 2025

Codecov Report

❌ Patch coverage is 33.33333% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 94.18%. Comparing base (41f7af2) to head (e21ace2).
⚠️ Report is 1 commits behind head on master.

Files with missing lines Patch % Lines
slice.go 33.33% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #735      +/-   ##
==========================================
- Coverage   94.29%   94.18%   -0.11%     
==========================================
  Files          18       18              
  Lines        2803     2805       +2     
==========================================
- Hits         2643     2642       -1     
- Misses        146      149       +3     
  Partials       14       14              
Flag Coverage Δ
unittests 94.18% <33.33%> (-0.11%) ⬇️

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 48d8fe4 into samber:master Nov 6, 2025
11 of 12 checks passed
@NathanBaulch NathanBaulch deleted the issortedby branch November 6, 2025 19:52
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.

3 participants