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

dunglas / go-urlpattern
92%

Build:
DEFAULT BRANCH: main
Repo Added 15 Sep 2024 08:23PM UTC
Token yGjZrxkSLEYRXjo0G6xsg1Sx0WLJ4o8bQ regen
Build 60 Last
Files 6
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 main
branch: main
CHANGE BRANCH
x
Reset
Sync Branches
  • main
  • chore/bump-deps
  • chore/lint-fixes
  • chore/upstream-whatwg-url
  • claude/ci-main-fix-e25ogb
  • fix/canonicalize-hash-error
  • fix/process-hash-strip-prefix
  • fix/string-delimiters
  • fix/tokenizer-error-swallow
  • perf/duplicate-name-map
  • perf/scheme-lookups
  • perf/share-common-component-regexps
  • spec/conformance
  • test/benchmarks

16 Jul 2026 09:30AM UTC coverage: 91.899%. Remained the same
29487397801

push

github

web-flow
fix: resolve goconst lint failures in test files (#13)

* fix: extract repeated component name literals into constants

golangci-lint's goconst check flags string literals repeated 3+ times.
Introduce named constants for the URL component names reused across
urlpattern_test.go and the example URL reused in benchmark_test.go so
the Lint CI job passes again.

* style: gofmt parts.go and urlpattern_test.go

1486 of 1617 relevant lines covered (91.9%)

1130.98 hits per line

Relevant lines Covered
Build:
Build:
1617 RELEVANT LINES 1486 COVERED LINES
1130.98 HITS PER LINE
Source Files on main
  • Tree
  • List 6
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
29487397801 main fix: resolve goconst lint failures in test files (#13) * fix: extract repeated component name literals into constants golangci-lint's goconst check flags string literals repeated 3+ times. Introduce named constants for the URL component names re... push 16 Jul 2026 09:31AM UTC web-flow github
91.9
29481117602 main perf: share precompiled regexps for common component patterns (#12) Compiling a URLPattern compiles one regexp per URL component. In typical patterns most components are the full wildcard (the default for username, password, search and hash) or e... push 16 Jul 2026 07:47AM UTC web-flow github
91.9
24727388304 main refactor!: rename error vars to ErrFoo and expand lint enforcement (#11) * refactor!: rename exported error vars from FooError to ErrFoo BREAKING CHANGE: every exported error identifier changes name to match the staticcheck ST1012 convention tha... push 21 Apr 2026 02:15PM UTC web-flow github
91.88
24677587846 main chore: bump deps, bump GitHub Actions, widen Go support matrix (#10) * chore: bump all deps and widen CI to both maintained Go versions - `go get -u all` + `go mod tidy`, bumping: - github.com/nlnwa/whatwg-url v0.5.0 -> v0.6.2 - github.com/b... push 20 Apr 2026 04:19PM UTC web-flow github
91.87
24667373104 main perf: cache special-scheme flag and switch scheme checks to map lookups - Call protocolComponentMatchesSpecialScheme() once per New() and reuse the result for both the hostname and pathname branches instead of matching the component regex aga... push 20 Apr 2026 12:48PM UTC dunglas github
91.87
24663752132 main test: add benchmark suite for pattern compilation and matching Covers New(), Test(), and Exec() across simple, wildcard, named, regex, and full URL patterns to enable future performance comparisons. Co-Authored-By: Claude Opus 4.7 (1M context) <... push 20 Apr 2026 11:22AM UTC dunglas github
91.82
24663455582 main spec: conform to latest WHATWG URL Pattern WPT test data Refresh testdata/urlpatterntestdata.json from the current WPT snapshot (365 cases, up from 313) and align the implementation with the new expectations: - createComponentMatchResult now bou... push 20 Apr 2026 11:15AM UTC dunglas github
91.82
24663373409 main fix: propagate error from canonicalizeHash instead of dropping it The fragment-parse branch returned (\"\", nil) when BasicParser failed, silently masking parse failures and making the canonicalizer look like it produced an empty hash on invalid ... push 20 Apr 2026 11:13AM UTC dunglas github
91.62
24663354619 main chore: add back comment push 20 Apr 2026 11:12AM UTC dunglas github
91.62
24663337871 main fix: canonicalize strippedValue in processHashForInit processHashForInit computed strippedValue (the hash with a leading '#' removed) but then passed the original value to canonicalizeHash, which matches neither the WHATWG spec nor the behavior o... push 20 Apr 2026 11:12AM UTC dunglas github
91.63
See All Builds (49)

Badge your Repo: go-urlpattern

We detected this repo isn’t badged! Grab the embed code to the right, add it to your repo to show off your code coverage, and when the badge is live hit the refresh button to remove this message.

Could not find badge in README.

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

Refresh
  • Settings
  • 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