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

m-lab / autojoin / 37787503301
70%
main: 70%

Build:
Build:
LAST BUILD BRANCH: feat/credentials_project
DEFAULT BRANCH: main
Ran 08 Oct 2026 01:51PM UTC
Jobs 1
Files 19
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

08 Oct 2026 01:47PM UTC coverage: 70.767% (-0.8%) from 71.535%
37787503301

Pull #109

github

bassosimone
fix(register)!: handle json.Unmarshal error

This patch updates `cmd/register/main.go` to handle
`json.Unmarshal` errors, which are possible depending
on what the response looks like. For example, a
truncated response could cause `Unmarshal` to fail.

We use `rtx.Must`, which logs and exits `1`.

While there, prefer an error message and `Exit(1)` to
panicking when the `register` API call failed.

While there, notice that the response has many pointers,
and act accordingly. Make sure it's well formed to
avoid null dereferences a few lines below.

BREAKING CHANGE: `panic` exits with exit code `2` but I'm
not convinced about keeping `2` in the new code: `2` is
usually reserved for "usage error", and in the current
codebase makes sense for "validating" input quickly, while
`1` seems a better semantic translation of "the response
does not look good, sorry, goodbye!".
Pull Request #109: fix(register)!: handle json.Unmarshal error

0 of 21 new or added lines in 1 file covered. (0.0%)

1 existing line in 1 file now uncovered.

1254 of 1772 relevant lines covered (70.77%)

0.78 hits per line

Uncovered Changes

Lines Coverage ∆ File
21
0.0
0.0% cmd/register/main.go

Coverage Regressions

Lines Coverage ∆ File
1
0.0
0.0% cmd/register/main.go
Jobs
ID Job ID Ran Files Coverage
1 0 - 37787503301.1 08 Oct 2026 01:51PM UTC 19
70.77
GitHub Action Run
Source Files on build 37787503301
  • Tree
  • List 19
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #109
  • PR Base - main (#37462621055)
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