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

Fix tests that assert disposal & single iteration of enumerators #759

Draft
wants to merge 19 commits into
base: master
Choose a base branch
from

Conversation

atifaziz
Copy link
Member

@atifaziz atifaziz commented Aug 12, 2020

We have TestingSequence<> and WatchableEnumerator<> to help with this and many tests are missing its use. This PR fixes that.

Pending:

  • Acquire
  • AggregateRight
  • Aggregate
  • Append
  • Assert
  • AssertCount
  • AtLeast
  • AtMost
  • Consume
  • CountBetween
  • CountBy
  • DistinctBy
  • Evaluate
  • Exactly
  • ExceptBy
  • FallbackIfEmpty
  • FillBackward
  • FillForward
  • ForEach
  • From
  • FullGroupJoin
  • FullJoin
  • Generate
  • GroupAdjacent
  • IndexBy
  • Index
  • Lag
  • Lead
  • LeftJoin
  • OrderBy
  • PadStart
  • Pad
  • PartialSortBy
  • PartialSort
  • Partition
  • Pipe
  • PreScan
  • Prepend
  • RandomSubset
  • Random
  • Return
  • RightJoin
  • RunLengthEncode
  • ScanBy
  • ScanRight
  • Scan
  • Sequence
  • Shuffle
  • SkipLast
  • Slice
  • Split
  • Subject
  • Subset
  • TakeEvery
  • TakeUntil
  • ToArrayByIndex
  • ToDataTable
  • ToDelimitedString
  • ToDictionary
  • ToLookup
  • Trace
  • Traverse
  • Unfold

Help is welcome by opening a PR against this branch. 🙏🏽

@codecov
Copy link

codecov bot commented Aug 12, 2020

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 93.22%. Comparing base (72c3c66) to head (9ab786a).

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #759   +/-   ##
=======================================
  Coverage   93.22%   93.22%           
=======================================
  Files         112      112           
  Lines        3410     3410           
  Branches      962      962           
=======================================
  Hits         3179     3179           
  Misses        215      215           
  Partials       16       16           

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

atifaziz added 3 commits July 4, 2023 19:27
Conflicts resolved:

- MoreLinq.Test/AssertTest.cs
- MoreLinq.Test/AtLeastTest.cs
- MoreLinq.Test/TestExtensions.cs
@atifaziz atifaziz mentioned this pull request Dec 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant