Skip to content

Glossary: Software Design Patterns in Go

t.Helper()

Also written: t.TempDir(), testing.T

Testing helpers on `*testing.T`. `t.Helper()` makes a failure point at the calling test instead of the helper, and `t.TempDir()` gives a temporary folder that is cleaned up after the test.

Where the book teaches it

Related terms

go testFixture