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

cweill / gotests / 18671598499
94%
master: 94%

Build:
Build:
LAST BUILD BRANCH: develop
DEFAULT BRANCH: master
Ran 21 Oct 2025 03:10AM UTC
Jobs 1
Files 11
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

21 Oct 2025 03:09AM UTC coverage: 84.497%. Remained the same
18671598499

push

github

cweill
Add early return when wantErr is true (PR #169)

Resolves #169

When a test expects an error (tt.wantErr == true), the test should
return early after verifying the error occurred, rather than continuing
to check result values. This prevents false test results when an error
is expected but result checking still occurs.

Changes:
- Modified function.tmpl to add `if tt.wantErr { return }` after error check
- Updated all golden test files to match new behavior
- This applies to both subtests (with Fatalf) and regular tests (with continue)

The fix ensures that when a test case expects an error, the test doesn't
proceed to validate return values that may be in an undefined state.

Thanks to @arifmahmudrana for identifying this issue!

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>

714 of 845 relevant lines covered (84.5%)

816.71 hits per line

Jobs
ID Job ID Ran Files Coverage
1 18671598499.1 21 Oct 2025 03:10AM UTC 11
84.5
GitHub Action Run
Source Files on build 18671598499
  • Tree
  • List 11
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #18671598499
  • 307a7381 on github
  • Prev Build on develop (#18670941291)
  • Next Build on develop (#18671673436)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc