• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In
Warning: This build has drifted.
The coverage report for this pull request build may be inaccurate because its base commit is no longer the HEAD of its target branch.
This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.

    • Learn more: For more information on this, see Tracking coverage changes for pull request builds.
    • Fix now: For a quick fix, rebase this PR at GitHub. Your next report should be accurate.
    • Prevent going forward: To avoid this issue with future PRs, see these Recommended CI Configurations.
New Repo Setting:
INCLUDE COVERAGE % WITH WARNINGS ABOUT DRIFTED BUILDS?

Enabling this setting will include a (potentially inaccurate) coverage % with warning messages in status updates for drifted builds.

Adjust setting

package-url / packageurl-go / 5589112670
86%
master: 82%

Build:
Build:
LAST BUILD BRANCH: fix-failing-tests
DEFAULT BRANCH: master
Ran 18 Jul 2023 03:02PM UTC
Jobs 2
Files 1
Run time 3s
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

18 Jul 2023 03:01PM UTC coverage: 85.833% (+0.8%) from 85.022%
5589112670

Pull #58

github

tommyknows
fix: escape everything with modified QueryEscape

This commit switches to using `QueryEscape` for escaping all components.
However, because `QueryEscape` escapes ` ` (space) to `+`, we actually
change that to a `%20`, that is the percent-encoded equivalent.

`QueryEscape` was built for HTTP Query parameters, and although there is
[some discussion](https://stackoverflow.com/questions/2678551/when-should-space-be-encoded-to-plus-or-20)
around it, escaping ` ` to a `+` is completely valid.
Sadly, other languages like Javascript don't handle that properly, so if
we simply used `QueryEscape`, the purl couldn't be parsed by other
implementations.
By using the universally supported `%20` instead, we restore
compatibility.
Pull Request #58: fix: escape everything with modified QueryEscape

19 of 19 new or added lines in 1 file covered. (100.0%)

206 of 240 relevant lines covered (85.83%)

174.52 hits per line

Jobs
ID Job ID Ran Files Coverage
1 5589112670.1 18 Jul 2023 03:02PM UTC 0
85.83
GitHub Action Run
2 5589112670.2 18 Jul 2023 03:03PM UTC 0
85.83
GitHub Action Run
Source Files on build 5589112670
Detailed source file information is not available for this build.
  • Back to Repo
  • Pull Request #58
  • PR Base - master (#5580657775)
  • 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