Skip to content

Glossary: Coding Interviews in Go

go test

Also written: TestXxx, testing.T, t.Errorf, t.Fatalf

Go's built-in testing tool. It finds files named `*_test.go` and runs each function named `Test…`, which checks with `if` and reports failures with `t.Errorf`.

Where the book teaches it

Related terms

Test functionTable testmaps.Equal`check` helper