• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

fredbi / uri / 6212471233 / 1
89%
master: 89%

Build:
DEFAULT BRANCH: master
Ran 17 Sep 2023 08:14AM UTC
Files 3
Run time 0s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

17 Sep 2023 08:13AM UTC coverage: 97.767% (-1.6%) from 99.374%
6212471233.1

push

github

web-flow
enhancement: replaces regular expressions by explicit parsing following (#20)

the RFC grammar.

Performance
-----------
* Removed all usage of regexp's.
* Replaced IPv6 parsing by standard lib functionality.

Overall, the benchmark shows a speed improvement of x5 when compared to
v0.1. This is still 2x slower than URL parsing with the standard libary.

RFC strictness
-----------
This PR fixes a few strictness issues:
* identifies wrong URIs with empty authority and path starting with a
double '/'
* identifies invalid IPv6 addresses with an empty zone
* strictier check of DNS names
* strictier check of URL-encoded escape sequences
* allow escape sequences in IP addresses
* strictly follows the RFC rule: "if not a valid IP, then consider a
registered name": hence
* strictier IP kind distinction: IPv6 must be between [], IPv4 must not

Caveats: IPv6 relies on the standard library and is therefore not very
strict regarding valid IPv6.

Fixes
-----------
* fixes #14

Signed-off-by: Frédéric BIDON <fredbi@yahoo.com>

613 of 627 relevant lines covered (97.77%)

126.22 hits per line

Source Files on job 6212471233.1
  • Tree
  • List 0
  • Changed 2
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 6212471233
  • 8810fa91 on github
  • Prev Job for on master (#6212103685.1)
  • Next Job for on master (#6214410830.2)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc