Go · Command
go test
Go tests live in _test.go files and use functions named TestName with a *testing.T parameter. Run them with go test; report failures with methods such as t.Errorf.
Last updated
Syntax
func TestName(t *testing.T)
go testIn-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
testingtesting.Tt.Errorfgo test-run-v_test.go