-
Notifications
You must be signed in to change notification settings - Fork 18.3k
Closed
Labels
AnalysisIssues related to static analysis (vet, x/tools/go/analysis)Issues related to static analysis (vet, x/tools/go/analysis)GoCommandcmd/gocmd/goProposalProposal-Accepted
Milestone
Description
What version of Go are you using (go version
)?
go 1.15.8
What did you do?
I resturctured my test TestXXX as an example ExampleXXX. But forgot to remove the argument.
What did you expect to see?
ExampleXXX(t *testing.T) is wrong signature for an example (has *testing.T as an argument),
so it should raise error on go test
.
What did you see instead?
It didn't run. Made me assumes the test has successfully finished.
Dr-Terrible, adonovan and bcmills
Metadata
Metadata
Assignees
Labels
AnalysisIssues related to static analysis (vet, x/tools/go/analysis)Issues related to static analysis (vet, x/tools/go/analysis)GoCommandcmd/gocmd/goProposalProposal-Accepted
Type
Projects
Status
Accepted