• 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 68 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: SELECT
CHANGE BRANCH
x
Sync Branches
  • No branch selected
  • 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
  • fuzz-oss-fuzz-compat
  • fuzz-testing
  • main
  • perf/duplicate-name-map
  • perf/scheme-lookups
  • perf/share-common-component-regexps
  • refs/tags/v1.0.0
  • spec/conformance
  • test/benchmarks

14 Aug 2026 11:15PM UTC coverage: 91.872% (-1.0%) from 92.919%
31849736058

push

github

web-flow
test: keep the fuzz harness OSS-Fuzz compatible (#15)

* test: move fuzz targets to the internal test package

OSS-Fuzz's go-118-fuzz-build tool locates a FuzzXxx function by an
exact package-path match against the requested import path, which
excludes the urlpattern_test external test package variant entirely
-- it silently never finds the fuzzers, failing the OSS-Fuzz build
with "Could not find the fuzz func". Every native-Go-fuzzing OSS-Fuzz
project keeps its harness in-package for this reason.

* test: move fuzz harness into its own internal/fuzz package

The repo root already carries external-package test files
(tokenizer_test.go, urlpattern_test.go, benchmark_test.go, all
"package urlpattern_test"). go-118-fuzz-build rewrites every _test.go
file in the fuzzer's directory into a regular .go file as part of its
build, so mixing those with an internal-package fuzz_test.go there
produced two conflicting non-test package clauses in one directory.
Isolating the harness in internal/fuzz avoids the collision.

1492 of 1624 relevant lines covered (91.87%)

1127.82 hits per line

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

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
31849736058 main test: keep the fuzz harness OSS-Fuzz compatible (#15) * test: move fuzz targets to the internal test package OSS-Fuzz's go-118-fuzz-build tool locates a FuzzXxx function by an exact package-path match against the requested import path, which exc... push 14 Aug 2026 11:16PM UTC web-flow github
91.87
31849459313 fuzz-oss-fuzz-compat test: move fuzz harness into its own internal/fuzz package The repo root already carries external-package test files (tokenizer_test.go, urlpattern_test.go, benchmark_test.go, all "package urlpattern_test"). go-118-fuzz-build rewrites every _test... Pull #15 14 Aug 2026 11:11PM UTC dunglas github
91.87
31848950645 fuzz-oss-fuzz-compat test: move fuzz harness into its own internal/fuzz package The repo root already carries external-package test files (tokenizer_test.go, urlpattern_test.go, benchmark_test.go, all "package urlpattern_test"). go-118-fuzz-build rewrites every _test... push 14 Aug 2026 11:03PM UTC dunglas github
91.87
31848830790 fuzz-oss-fuzz-compat test: move fuzz targets to the internal test package OSS-Fuzz's go-118-fuzz-build tool locates a FuzzXxx function by an exact package-path match against the requested import path, which excludes the urlpattern_test external test package variant e... push 14 Aug 2026 11:01PM UTC dunglas github
92.92
31848212451 refs/tags/v1.0.0 Add fuzz testing, fix panics it found (#14) * test: add fuzz targets for constructor-string and init-based pattern parsing Cover both entry points into the pattern compiler: New() with a constructor string plus baseURL, and URLPatternInit.New() ... push 14 Aug 2026 10:51PM UTC web-flow github
92.92
31847984260 main Add fuzz testing, fix panics it found (#14) * test: add fuzz targets for constructor-string and init-based pattern parsing Cover both entry points into the pattern compiler: New() with a constructor string plus baseURL, and URLPatternInit.New() ... push 14 Aug 2026 10:48PM UTC web-flow github
92.92
31847908056 fuzz-testing fix: prevent panic on syntax-only pathname/hostname pattern components Some canonicalization callbacks (e.g. hostname, opaque-pathname) can collapse a non-empty component like "#" down to an empty string. generatePatternString assumed adjacent fi... Pull #14 14 Aug 2026 10:46PM UTC dunglas github
92.92
31847016393 fuzz-testing fix: prevent panic on syntax-only pathname/hostname pattern components Some canonicalization callbacks (e.g. hostname, opaque-pathname) can collapse a non-empty component like "#" down to an empty string. generatePatternString assumed adjacent fi... push 14 Aug 2026 10:33PM UTC dunglas github
92.92
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
29484116322 claude/ci-main-fix-e25ogb style: gofmt parts.go and urlpattern_test.go Pull #13 16 Jul 2026 08:37AM UTC dunglas github
91.9
See All Builds (57)

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