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

romshark / datapages / 37054565778
44%

Build:
DEFAULT BRANCH: main
Ran 02 Oct 2026 07:31PM 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

02 Oct 2026 07:29PM UTC coverage: 40.526% (-0.005%) from 40.531%
37054565778

push

github

romshark
fix: Refuse plain forms on App page cache actions

Require the Datastar-Request header on every action of App that takes
a datapages.PageCacheWriter, as on a page. A plain form cannot receive
the queued writes of a redirect: it gets an HTTP redirect,
which carries none. Take this action:

    // POSTReset is /reset
    func (*App) POSTReset(
        r *http.Request, pageCache datapages.PageCacheWriter,
    ) (redirect datapages.Redirect, err error) {
        pageCache.ClearAll()
        return datapages.Redirect{URL: "/"}, nil
    }

A <form method="post" action="/reset/"> gets a 302 to /, and the
worker keeps every cached page. Answer it with 406 Not Acceptable, as
for the same method on a page. Refuse a plain form to an action that
returns a body too, which keeps one rule for every action that takes
a datapages.PageCacheWriter.

4 of 5 new or added lines in 3 files covered. (80.0%)

3 existing lines in 2 files now uncovered.

14725 of 36335 relevant lines covered (40.53%)

544.07 hits per line

Uncovered Changes

Lines Coverage ∆ File
1
0.0
0.0% example/offline-cache/app/datapagesgen/app_gen.go

Coverage Regressions

Lines Coverage ∆ File
2
55.66
-0.09% example/file-upload/app/app_templ.go
1
85.8
-0.3% runtime/httpserve/core.go
Jobs
ID Job ID Ran Files Coverage
1 webcomponents - 37054565778.1 02 Oct 2026 07:31PM UTC 6
0.0
GitHub Action Run
2 counter - 37054565778.2 02 Oct 2026 07:32PM UTC 12
0.0
GitHub Action Run
3 sqlitesessions - 37054565778.3 02 Oct 2026 07:32PM UTC 9
0.0
GitHub Action Run
4 root - 37054565778.4 02 Oct 2026 07:41PM UTC 77
77.86
GitHub Action Run
5 tailwindcss - 37054565778.5 02 Oct 2026 07:31PM UTC 6
0.0
GitHub Action Run
6 fast-shim - 37054565778.6 02 Oct 2026 07:31PM UTC 4
0.0
GitHub Action Run
7 offline-cache - 37054565778.7 02 Oct 2026 07:31PM UTC 19
0.0
GitHub Action Run
8 calculator - 37054565778.8 02 Oct 2026 07:32PM UTC 10
17.11
GitHub Action Run
9 todolist - 37054565778.9 02 Oct 2026 07:31PM UTC 11
0.0
GitHub Action Run
10 file-upload - 37054565778.10 02 Oct 2026 07:32PM UTC 18
45.83
GitHub Action Run
11 classifieds - 37054565778.11 02 Oct 2026 07:32PM UTC 18
0.0
GitHub Action Run
Source Files on build 37054565778
  • Tree
  • List 190
  • Changed 5
  • Source Changed 3
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #37054565778
  • bdc03b58 on github
  • Prev Build on main (#37048041084)
  • Next Build on main (#37113737865)
  • 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