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

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

Build:
Build:
LAST BUILD BRANCH: dependabot/go_modules/gomod-minor-patch-4e31519e38
DEFAULT BRANCH: main
Ran 08 Oct 2026 10:08AM 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 10:01AM UTC coverage: 70.688% (-0.8%) from 71.535%
37761464186

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.

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 23 new or added lines in 1 file covered. (0.0%)

1 existing line in 1 file now uncovered.

1254 of 1774 relevant lines covered (70.69%)

0.78 hits per line

Uncovered Changes

Lines Coverage ∆ File
23
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 - 37761464186.1 08 Oct 2026 10:08AM UTC 19
70.69
GitHub Action Run
Source Files on build 37761464186
  • 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