Closed BlueGreenMagick closed 1 month ago
:warning: Please install the to ensure uploads and comments are reliably processed by Codecov.
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 60.17%. Comparing base (
7558577
) to head (3ebe221
). Report is 96 commits behind head on master.
:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Modified the code so that balance_buf
is computed only once.
Thanks for the detailed feedback! I adjusted the PR.
- start with balance == 1 (it is
<
in<!DOCTYPE
) here
As the balance is calculated in up to chunk excluding current found >
, I did not add 1 to balance initially.
add tests for the mentioned case (chunk with < + chunk with > which closes < from the first chunk). It is enough just craft such a string and use appropriate buffer size to slice string to desired chunks
Are regression tests for issues 533, 590, 801 enough? Or are additional tests desired?
try to check if this fixes https://github.com/tafia/quick-xml/issues/533. I think it should because it seems to be a duplicate of these issues, but need to check
This PR does indeed fixes the issue. Added a regression test for the case, and modified the initial post so the issue will be closed when this PR is merged.
You also can squash all your changes if you wish
Done!
I adjusted regression test for issue801 so that all angle brackets are explicitly in different buffer (by lowering buffer size to 2 bytes).
I think it might be better (and easier with GitHub UI) to squash merge on your end, so others can still follow the conversation in this PR in the future.
Thanks!
Fixes #533, fixes #590, fixes #801