Skip to content

Additional tests for attribute value normalization#946

Merged
Mingun merged 1 commit intotafia:masterfrom
dralley:more-avn-tests
Feb 21, 2026
Merged

Additional tests for attribute value normalization#946
Mingun merged 1 commit intotafia:masterfrom
dralley:more-avn-tests

Conversation

@dralley
Copy link
Copy Markdown
Collaborator

@dralley dralley commented Feb 21, 2026

Add tests for:

  • recursion limit boundary testsing
  • edge cases around malformed or invalid entity and character references
  • resolution of predefined entities

Some existing tests were also re-sorted slightly.

@dralley dralley requested a review from Mingun February 21, 2026 16:01
Add tests for:

* recursion limit boundary testsing
* edge cases around malformed or invalid entity and character references
* resolution of predefined entities

Some existing tests were also re-sorted slightly.
Ok("already normalized".into())
);
}

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Already existed, just moved

@dralley
Copy link
Copy Markdown
Collaborator Author

dralley commented Feb 21, 2026

Apologies for the bad diff formatting. I can try to split the moves from the additions if you prefer.

@codecov-commenter
Copy link
Copy Markdown

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

❌ Patch coverage is 97.50000% with 5 lines in your changes missing coverage. Please review.
✅ Project coverage is 56.39%. Comparing base (2b21d40) to head (49b6415).
⚠️ Report is 22 commits behind head on master.

Files with missing lines Patch % Lines
src/escape.rs 97.50% 5 Missing ⚠️
❗ Your organization needs to install the Codecov GitHub app to enable full functionality.
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #946      +/-   ##
==========================================
+ Coverage   55.00%   56.39%   +1.38%     
==========================================
  Files          44       44              
  Lines       16816    17579     +763     
==========================================
+ Hits         9249     9913     +664     
- Misses       7567     7666      +99     
Flag Coverage Δ
unittests 56.39% <97.50%> (+1.38%) ⬆️

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

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

}

#[test]
fn predefined_entities() {
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

This would arguably make more sense as a test of Attribute::normalized_value()

Copy link
Copy Markdown
Collaborator

@Mingun Mingun left a comment

Choose a reason for hiding this comment

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

Good additions. Yes, moving in separate commit would be preferred, but changes here not so big and I recognized the move.

LGTM

@Mingun Mingun merged commit dbf8a24 into tafia:master Feb 21, 2026
7 checks passed
@dralley dralley deleted the more-avn-tests branch February 21, 2026 16:19
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