golang/go
View on GitHubx/tools/go/analysis/passes/testinggoroutine: do not ignore calls in goroutines (false negative)
Open
#63,849 opened on Oct 31, 2023
AnalysisNeedsInvestigationhelp wanted
Repository metrics
- Stars
- (133,883 stars)
- PR merge metrics
- (No merged PRs in 30d)
Description
$ go vet -testinggoroutine some_test.go
func TestSomething(t *testing.T)
go func() {
helper(t) // No warning :(
}()
}
func helper(t *testing.T) {
t.Helper()
t.Fatal()
}