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

Refactor to use validation errors (enum class validation_errc) #13

Merged
merged 3 commits into from
Oct 12, 2023

Conversation

rmisev
Copy link
Member

@rmisev rmisev commented Oct 9, 2023

The validation errors used are defined at:
https://url.spec.whatwg.org/#validation-error

Follows: whatwg/url@d84610f

@codecov
Copy link

codecov bot commented Oct 9, 2023

Codecov Report

Attention: 3 lines in your changes are missing coverage. Please review.

Comparison is base (011c39f) 99.09% compared to head (72bcabf) 99.72%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #13      +/-   ##
==========================================
+ Coverage   99.09%   99.72%   +0.63%     
==========================================
  Files          15       15              
  Lines        2202     2213      +11     
==========================================
+ Hits         2182     2207      +25     
+ Misses         20        6      -14     
Files Coverage Δ
include/upa/url.h 99.74% <100.00%> (ø)
include/upa/url_host.h 100.00% <100.00%> (ø)
include/upa/url_ip.h 100.00% <100.00%> (ø)
include/upa/url_result.h 100.00% <100.00%> (ø)
src/url_idna.cpp 93.33% <66.66%> (+31.11%) ⬆️

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

* input examples from the https://url.spec.whatwg.org/#validation-error
  table for errors that cause failure

* tests for better coverage of the ipv6_parse function
@rmisev rmisev merged commit 72bcabf into main Oct 12, 2023
18 of 19 checks passed
@rmisev rmisev deleted the validation-err branch October 12, 2023 20:33
rmisev added a commit that referenced this pull request Oct 24, 2023
The URL standard changes from
whatwg/url@3e8cd02
"Fix validation error when a URL has credentials but no host" are
already included in the PR #13 commits
b508f69 and
45293e1
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.

1 participant