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

kulti / thelper / 17405354163
75%
master: 76%

Build:
Build:
LAST BUILD BRANCH: impr
DEFAULT BRANCH: master
Ran 02 Sep 2025 01:39PM UTC
Jobs 1
Files 4
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

02 Sep 2025 01:38PM UTC coverage: 75.641% (+0.06%) from 75.577%
17405354163

Pull #51

github

busser
🤫 Don't require `t.Helper` in functions passed to `synctest.Test`

Go 1.25 made the `testing/synctest` package generally available. The
package introduces the `synctest.Test` function, to be used like this:

```go
func TestMyFeature(t *testing.T) {
	synctest.Test(t, func(t *testing.T) {
		// Do stuff that uses goroutines
	})
}
```

Sadly, `thelper` triggers if the anonymous function passed to
`synctest.Test` doesn't call `t.Helper()`. The issue is that this
anonymous function isn't a helper, it's more like a sub-test.

This PR extends `thelper` to grant an exception to functions passed to
`synctest.Test`, just like functions passed to `t.Run` or `b.Run`.

This requires updating to Go 1.25, so this PR is stacked on top of #50.
Pull Request #51: 🤫 Don't require t.Helper in functions passed to synctest.Test

20 of 26 new or added lines in 1 file covered. (76.92%)

18 existing lines in 1 file now uncovered.

413 of 546 relevant lines covered (75.64%)

200.83 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
6
85.84
-0.54% pkg/analyzer/analyzer.go

Uncovered Existing Lines

Lines Coverage ∆ File
18
85.84
-0.54% pkg/analyzer/analyzer.go
Jobs
ID Job ID Ran Files Coverage
1 17405354163.1 02 Sep 2025 01:39PM UTC 4
75.64
GitHub Action Run
Source Files on build 17405354163
  • Tree
  • List 4
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #51
  • PR Base - master (#17381801167)
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