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

cweill / gotests / 18671673436
94%
master: 94%

Build:
Build:
LAST BUILD BRANCH: develop
DEFAULT BRANCH: master
Ran 21 Oct 2025 03:14AM 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:14AM UTC coverage: 83.958% (-0.5%) from 84.497%
18671673436

push

github

cweill
Fix -template_params flag not being passed (Issue #149)

Resolves #149

The -template_params flag was defined in main.go but never passed to
the process.Options struct, making it non-functional. This was a bug
introduced in PR #90.

Changes:
- Added TemplateParams field to process.Options struct
- Updated main.go to pass *templateParams to process.Run()
- Updated process.go to parse JSON from TemplateParams string
- File-based params (-template_params_file) take precedence over
  string-based params (-template_params) if both are provided
- Added proper error handling for invalid JSON

The flag now works as intended:
  $ gotests -template_params '{"key":"value"}' -all file.go

Thanks to @butuzov for identifying this issue and @cweill for the fix suggestion!

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

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

3 of 9 new or added lines in 2 files covered. (33.33%)

717 of 854 relevant lines covered (83.96%)

808.18 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
10.0
-0.2% gotests/main.go
5
66.67
-2.56% gotests/process/process.go
Jobs
ID Job ID Ran Files Coverage
1 18671673436.1 21 Oct 2025 03:14AM UTC 11
83.96
GitHub Action Run
Source Files on build 18671673436
  • Tree
  • List 11
  • Changed 2
  • Source Changed 2
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #18671673436
  • 24c1f8dd on github
  • Prev Build on develop (#18671598499)
  • Next Build on develop (#18673299301)
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