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

Changed BytesText constructors to use utf8 types #424

Closed
wants to merge 1 commit into from

Conversation

dralley
Copy link
Collaborator

@dralley dralley commented Jul 17, 2022

No description provided.

@dralley dralley requested a review from Mingun July 17, 2022 14:43
@codecov-commenter
Copy link

codecov-commenter commented Jul 17, 2022

Codecov Report

Merging #424 (c5afbce) into master (068b36e) will decrease coverage by 0.16%.
The diff coverage is 88.09%.

@@            Coverage Diff             @@
##           master     #424      +/-   ##
==========================================
- Coverage   49.53%   49.37%   -0.17%     
==========================================
  Files          22       22              
  Lines       13861    13860       -1     
==========================================
- Hits         6866     6843      -23     
- Misses       6995     7017      +22     
Flag Coverage Δ
unittests 49.37% <88.09%> (-0.17%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
src/events/mod.rs 68.13% <71.42%> (-0.07%) ⬇️
src/writer.rs 49.28% <80.00%> (ø)
src/de/mod.rs 77.54% <100.00%> (-0.70%) ⬇️
src/reader.rs 59.17% <100.00%> (-0.96%) ⬇️
src/se/mod.rs 93.81% <100.00%> (ø)
src/errors.rs 2.59% <0.00%> (+0.51%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 068b36e...c5afbce. Read the comment docs.

@@ -615,9 +615,9 @@ fn test_read_write_roundtrip_escape() -> Result<()> {
match reader.read_event_into(&mut buf)? {
Eof => break,
Text(e) => {
let t = e.escape();
let t = reader.decoder().decode(e.escape())?;
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Logically the order of operations here is wrong, but as the data is already stored escaped, .escape() is a no-op, thus it doesn't really matter - and this will be cleaned up soon anyway.

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.

2 participants