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

slub / urnlib
96%
main: 96%

Build:
Build:
LAST BUILD BRANCH: refactor/resolve-review-findings
DEFAULT BRANCH: main
Repo Added 06 Aug 2025 01:05PM UTC
Files 27
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

LAST BUILD ON BRANCH feature/normalize
branch: feature/normalize
CHANGE BRANCH
x
Reset
  • feature/normalize
  • chore/issues-48-51
  • chore/release-config
  • chore/relicense-lgpl
  • feature/rfc-4198
  • fix/bug-batch
  • fix/copy-constructor-validation
  • fix/percent-encoding-roundtrip
  • lgpl-3.0-relicense
  • main
  • refactor/resolve-review-findings
  • test/real-world-urns
  • v3.0.0

17 Nov 2026 11:02AM UTC coverage: 95.933% (-0.7%) from 96.615%
44070997384

push

github

claussni
Add normalize(), assignedName() and URN-equivalence to URNs and their parts

equals() compares URNs exactly as given. Whether two URNs name the same
thing is a separate question, answered by the equivalence rules of
RFC 2141, section 5 and RFC 8141, section 3, and by the rules of a
namespace.

- URN, NamespaceIdentifier and NamespaceSpecificString get an abstract
  normalize() returning the normal form of the same type: lower-case
  NID, upper-case hex digits in percent-encoded octets.
- NamespaceSpecificString gets the protected normalForm(String) hook, so
  that implementations for a particular namespace can add their rules.
- URN.assignedName() returns the URN without r-, q- and f-components.
- isEquivalentTo() on all three applies the rules of the receiver to the
  other object, which may be of any type. URN.areEquivalent() asks both
  URNs.

urn.normalize().assignedName() is a key for collections that are to
treat equivalent URNs as the same.

The abstract methods are a breaking change for third-party subclasses.

334 of 352 branches covered (94.89%)

Branch coverage included in aggregate %.

468 of 484 relevant lines covered (96.69%)

4.99 hits per line

Relevant lines Covered
Build:
Build:
484 RELEVANT LINES 468 COVERED LINES
4.99 HITS PER LINE
Source Files on feature/normalize
  • Tree
  • List 21
  • Changed 10
  • Source Changed 0
  • Coverage Changed 10
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
44070997384 feature/normalize Add normalize(), assignedName() and URN-equivalence to URNs and their parts equals() compares URNs exactly as given. Whether two URNs name the same thing is a separate question, answered by the equivalence rules of RFC 2141, section 5 and RFC 814... push 17 Nov 2026 11:07AM UTC claussni github
95.93
44066120228 feature/normalize Add normalize(), assignedName() and URN-equivalence to URNs and their parts equals() compares URNs exactly as given. Whether two URNs name the same thing is a separate question, answered by the equivalence rules of RFC 2141, section 5 and RFC 814... push 17 Nov 2026 10:35AM UTC claussni github
95.5
43881922378 feature/normalize Add normalize() to URNs and their parts normalize() returns the normal form according to the type of the URN: lower case NID and upper case percent-encoded octets for RFC 2141 and RFC 8141 URNs. toString() keeps returning the literal as given. A... push 16 Nov 2026 02:04PM UTC claussni github
95.29
See All Builds (39)
  • Repo on GitHub
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc