t.Helper() is certainly going to be very useful. I often implement functions like:<p><pre><code> func testServer(t *testing.T, port int) {
...do stuff...
if err != nil { t.Fatalf("failed to start server: %+v", err) }
}
</code></pre>
similarly you can have<p><pre><code> func assertMapEquals(t *testing.T, a, b map[string]int)
</code></pre>
It lets you hide such helper methods from the test failure's stack trace (where t.Fatal is actually called), making test errors more readable.