Skip to content

Conversation

@Mingun
Copy link
Collaborator

@Mingun Mingun commented Jun 19, 2022

Fixes #363

Just moving already existing check outside of trim_text_start check was enough. Now useless empty Text events are not generated

@Mingun Mingun requested a review from dralley June 19, 2022 17:19
Mingun added 2 commits June 19, 2022 22:21
…nts generated for corresponding inputs

failures:
    reader::test::borrowed::read_event_buffered::cdata
    reader::test::borrowed::read_event_buffered::comment
    reader::test::borrowed::read_event_buffered::declaration
    reader::test::borrowed::read_event_buffered::doctype
    reader::test::borrowed::read_event_buffered::empty
    reader::test::borrowed::read_event_buffered::end
    reader::test::borrowed::read_event_buffered::processing_instruction
    reader::test::borrowed::read_event_buffered::start
    reader::test::buffered::read_event_buffered::cdata
    reader::test::buffered::read_event_buffered::comment
    reader::test::buffered::read_event_buffered::declaration
    reader::test::buffered::read_event_buffered::doctype
    reader::test::buffered::read_event_buffered::empty
    reader::test::buffered::read_event_buffered::end
    reader::test::buffered::read_event_buffered::processing_instruction
    reader::test::buffered::read_event_buffered::start
@codecov-commenter
Copy link

codecov-commenter commented Jun 19, 2022

Codecov Report

Merging #398 (bdf9f46) into master (e701c4d) will increase coverage by 0.32%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master     #398      +/-   ##
==========================================
+ Coverage   61.37%   61.70%   +0.32%     
==========================================
  Files          20       20              
  Lines       10157    10233      +76     
==========================================
+ Hits         6234     6314      +80     
+ Misses       3923     3919       -4     
Flag Coverage Δ
unittests 61.70% <100.00%> (+0.32%) ⬆️

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

Impacted Files Coverage Δ
src/reader.rs 88.40% <100.00%> (+0.98%) ⬆️
src/lib.rs 26.00% <0.00%> (ø)
src/events/mod.rs 74.33% <0.00%> (+0.37%) ⬆️

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 e701c4d...bdf9f46. Read the comment docs.

@Mingun Mingun merged commit 3b37c0e into tafia:master Jun 19, 2022
@Mingun Mingun deleted the no-empty-texts branch June 19, 2022 19:24
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.

Unexpected empty Text event when XML starts from a comment

3 participants