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 handling of multiple encoding errors in decode_bytes input chunks. #36

Merged
merged 1 commit into from
Jul 11, 2024

Conversation

christian-monch
Copy link
Contributor

This PR fixes a bug that was detected by @mih and addressed here. Due to this bug, multiple encoding errors in a single input chunk of decode_bytes lead to unexpected decoding exceptions.

The PR adds a regression test to ensure that multiple encoding errors in a single input chunk are handled properly.

This commit fixes a bug that was detected
by @mih. Due to this bug, multiple encoding
errors in a single input chunk of `decode_bytes`
lead to unexpected decoding-exceptions.

The commit also adds a regression test to enure
that multiple encoding errors in a single input
chunk are handled properly.
Copy link

codeclimate bot commented Jul 11, 2024

Code Climate has analyzed commit 31876e7 and detected 0 issues on this pull request.

View more on Code Climate.

@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 98.01%. Comparing base (e6e071f) to head (31876e7).
Report is 2 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main      #36   +/-   ##
=======================================
  Coverage   98.00%   98.01%           
=======================================
  Files          19       19           
  Lines         652      655    +3     
  Branches      118      118           
=======================================
+ Hits          639      642    +3     
  Misses          7        7           
  Partials        6        6           

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

Copy link
Member

@mih mih left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@mih mih merged commit 810f513 into datalad:main Jul 11, 2024
5 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.

3 participants