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

romshark / datapages / 37672843362
44%

Build:
DEFAULT BRANCH: main
Ran 07 Oct 2026 07:14PM UTC
Jobs 11
Files 190
Run time 1min
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

07 Oct 2026 07:07PM UTC coverage: 44.182% (+0.06%) from 44.125%
37672843362

push

github

romshark
fix: Scope the offline worker to the whole origin

A worker served from a subdirectory controls only the pages under it:

    offline.Config{ScriptURL: "/static/sw.js"}

    > (await navigator.serviceWorker.register('/static/sw.js')).scope
    'https://example.com/static/'

Every other page stays uncontrolled: it does not load offline,
and its PageCacheWriter writes never reach the worker.

Refuse a ScriptURL that is not a plain path,
such as sw.js or /sw.js?v=2. The worker never loads from those.

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

7 existing lines in 2 files now uncovered.

16266 of 36816 relevant lines covered (44.18%)

583.38 hits per line

Coverage Regressions

Lines Coverage ∆ File
6
56.74
0.19% example/file-upload/app/app_templ.go
1
79.53
-0.29% modules/sessions/natskv/natskv.go
Jobs
ID Job ID Ran Files Coverage
1 todolist - 37672843362.1 07 Oct 2026 07:14PM UTC 11
0.0
GitHub Action Run
2 fast-shim - 37672843362.2 07 Oct 2026 07:14PM UTC 4
0.0
GitHub Action Run
3 webcomponents - 37672843362.3 07 Oct 2026 07:14PM UTC 6
0.0
GitHub Action Run
4 tailwindcss - 37672843362.4 07 Oct 2026 07:14PM UTC 6
0.0
GitHub Action Run
5 counter - 37672843362.5 07 Oct 2026 07:14PM UTC 12
0.0
GitHub Action Run
6 calculator - 37672843362.6 07 Oct 2026 07:21PM UTC 10
38.03
GitHub Action Run
7 classifieds - 37672843362.7 07 Oct 2026 07:14PM UTC 18
3.17
GitHub Action Run
8 root - 37672843362.8 07 Oct 2026 07:24PM UTC 77
78.21
GitHub Action Run
9 sqlitesessions - 37672843362.9 07 Oct 2026 07:14PM UTC 9
10.91
GitHub Action Run
10 offline-cache - 37672843362.10 07 Oct 2026 07:14PM UTC 19
18.75
GitHub Action Run
11 file-upload - 37672843362.11 07 Oct 2026 07:14PM UTC 18
47.42
GitHub Action Run
Source Files on build 37672843362
  • Tree
  • List 190
  • Changed 4
  • Source Changed 1
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #37672843362
  • 03ec4cb2 on github
  • Prev Build on main (#37656495806)
  • Next Build on main (#37681311124)
  • Delete
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