|
Ran
|
Jobs
1
|
Files
1
|
Run time
1min
|
Badge
README BADGES
|
push
github
Fix module name and let response recorder unwrap (#96) * fix: rename module so go build does not emit a .go file The module path github.com/raeperd/kickstart.go made go build write a binary named kickstart.go, which the go tool then parsed as a source file and failed vet and build until it was deleted. Drop the .go suffix, matching the ghcr.io/raeperd/kickstart image name, and update the goimports local prefix and the README rename step. * fix: let response recorder pass through Flush, Hijack, and deadlines The recorder only forwarded SetWriteDeadline, so handlers could not flush, hijack, or set a read deadline through http.ResponseController, and type assertions for http.Flusher and http.Hijacker failed. Expose Unwrap for deadlines and intercept Flush and Hijack so the recorded status still matches what the client received: a flush commits the implicit 200, and a hijacked connection records no status and stops recovery from writing a 500 into it. * feat: serve pprof and expvar on a separate DEBUG_PORT The debug handlers were mounted on the service port, so every deployment exposed pprof and expvar wherever the service was reachable. Serve them from a second listener bound to DEBUG_PORT, with the default left unset so nothing is exposed unless asked for. The second server starts and shuts down alongside the service server, and a failed debug bind stops the service the same way a failed service bind does. * test: cover main by re-executing the test binary TestMain runs main when KICKSTART_TEST_MAIN is set, and TestMainExit spawns the test binary that way to check the non-zero exit and stderr message for an invalid PORT and the clean exit after SIGINT. Statement coverage goes from 90.5% to 95.7%. * Revert "test: cover main by re-executing the test binary" This reverts commit c0eac8cc4. * refactor: gate debug endpoints behind DEBUG instead of a second listener A separate DEBUG_PORT server needed its own lifecycl... (continued)
2 of 2 new or added lines in 1 file covered. (100.0%)
140 of 158 relevant lines covered (88.61%)
174.51 hits per line
| ID | Job ID | Ran | Files | Coverage | |
|---|---|---|---|---|---|
| 1 | 42639745879.1 | 1 |
88.61
|
GitHub Action Run |
| Coverage | ∆ | File | Lines | Relevant | Covered | Missed | Hits/Line |
|---|