Skip to content

Glossary: Go in Practice

t.TempDir; t.Cleanup; t.Helper; t.Context

Also written: t.TempDir, t.Cleanup, t.Helper, t.Context

Test helpers: a new empty folder deleted when the test ends, code to run when it ends, a mark so failures point at the test's line, and a context canceled when it ends.

Where the book teaches it

Related terms

Subtest; table test