8000 Fix exception thrown by current buffer index implementation by atifaziz · Pull Request #927 · morelinq/MoreLINQ · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Fix exception thrown by current buffer index implementation #927

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

Merged
merged 1 commit into from
Jan 16, 2023

Conversation

atifaziz
Copy link
Member

This PR fixes the ICurrentBuffer<> indexer implementation, used in Batch, to throw IndexOutOfRangeException instead of ArgumentOutOfRangeException. This is to respect the contract of IList<T>[index], which should throw ArgumentOutOfRangeException for an index index.

This is a follow-up to a review comment by @viceroypenguin on PR #924.

@atifaziz atifaziz added the bug label Jan 15, 2023
@atifaziz atifaziz mentioned this pull request Jan 15, 2023
@codecov
Copy link
codecov bot commented Jan 15, 2023

Codecov Report

Merging #927 (fb29c31) into master (583c51b) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master     #927   +/-   ##
=======================================
  Coverage   92.43%   92.43%           
=======================================
  Files         112      112           
  Lines        3436     3436           
  Branches     1019     1019           
=======================================
  Hits         3176     3176           
  Misses        199      199           
  Partials       61       61           

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@atifaziz atifaziz merged commit fb29c31 into morelinq:master Jan 16, 2023
@atifaziz atifaziz deleted the fix-curr-buff-index-error branch January 16, 2023 11:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects 422A
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0