golang/go

x/tools/go/analysis/passes/testinggoroutine: do not ignore calls in goroutines (false negative)

Open

#63,849 opened on 2023年10月31日

GitHub で見る
 (5 comments) (0 reactions) (0 assignees)Go (19,008 forks)batch import
AnalysisNeedsInvestigationhelp wanted

Repository metrics

Stars
 (133,883 stars)
PR merge metrics
 (30d に merged PR はありません)

説明

$ 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()
}

コントリビューターガイド