Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable overly complex Partition overloads #534

Merged
merged 2 commits into from
Nov 1, 2023

Conversation

viceroypenguin
Copy link
Owner

This PR disables several overload of Partition.

These overloads receive an IEnumerable<IGrouping<TKey, TSource>> in order to select elements from the list of groupings. This is a poor pattern and should be discouraged. A better pattern is to use .ToLookup(), and possibly add an Extract method to be added in the future.

@viceroypenguin viceroypenguin added this to the 5.3.0 milestone Nov 1, 2023
@viceroypenguin viceroypenguin self-assigned this Nov 1, 2023
Copy link

codecov bot commented Nov 1, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (befb8e6) 91.82% compared to head (dae2f8a) 91.83%.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #534   +/-   ##
=======================================
  Coverage   91.82%   91.83%           
=======================================
  Files         255      255           
  Lines        8223     8227    +4     
  Branches     1646     1646           
=======================================
+ Hits         7551     7555    +4     
  Misses        462      462           
  Partials      210      210           
Files Coverage Δ
Source/SuperLinq.Async/Partition.cs 100.00% <100.00%> (ø)
Source/SuperLinq/Partition.cs 100.00% <100.00%> (ø)

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

@viceroypenguin viceroypenguin merged commit cdbccb3 into master Nov 1, 2023
@viceroypenguin viceroypenguin deleted the obsolete-partition branch November 1, 2023 17:18
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.

1 participant