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 incorrect behaviour of сheck_end_names after disabling and enabling #516

Merged
merged 3 commits into from Nov 28, 2022

Conversation

Mingun
Copy link
Collaborator

@Mingun Mingun commented Nov 28, 2022

Since now are always track stack of names, regardless of сheck_end_names setting. This is also fixes an error when you start from disabled setting, read some open tag and then enable reporting. After this PR that error will be correctly reported if closed tag won't match opened.

Fixes #514

Mingun and others added 3 commits November 20, 2022 18:07
failures (2):

---- issue514::no_mismatch stdout ----
thread 'issue514::no_mismatch' panicked at 'called `Result::unwrap()` on an `Err` value: EndEventMismatch { expected: "html", found: "some-tag" }', tests\issues.rs:34:40
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

---- issue514::mismatch stdout ----
thread 'issue514::mismatch' panicked at 'assertion failed: `(left == right)`

Diff < left / right > :
<html
>some-tag

', tests\issues.rs:59:17
@Mingun Mingun added the bug label Nov 28, 2022
@codecov-commenter
Copy link

Codecov Report

Merging #516 (25a5a53) into master (9f8ec44) will increase coverage by 0.04%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master     #516      +/-   ##
==========================================
+ Coverage   61.33%   61.38%   +0.04%     
==========================================
  Files          33       33              
  Lines       15393    15397       +4     
==========================================
+ Hits         9441     9451      +10     
+ Misses       5952     5946       -6     
Flag Coverage Δ
unittests 61.38% <100.00%> (+0.04%) ⬆️

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

Impacted Files Coverage Δ
src/se/element.rs 97.70% <ø> (ø)
src/reader/parser.rs 98.65% <100.00%> (+0.04%) ⬆️
src/reader/buffered_reader.rs 85.37% <0.00%> (-0.48%) ⬇️
src/de/mod.rs 67.09% <0.00%> (-0.08%) ⬇️
src/lib.rs 13.25% <0.00%> (+<0.01%) ⬆️
src/escapei.rs 12.41% <0.00%> (+0.05%) ⬆️
src/reader/slice_reader.rs 100.00% <0.00%> (+4.68%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@dralley dralley merged commit 78a1cf5 into tafia:master Nov 28, 2022
@Mingun Mingun deleted the fix-сheck-end-names branch November 28, 2022 20:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Incorrect example of temporary disabling check_end_names
3 participants