// TestMain executes the test binary as the addr2line command if // GO_ADDR2LINETEST_IS_ADDR2LINE is set, and runs the tests otherwise. func TestMain(m *testing.M) { … } func loadSyms(t *testing.T, dbgExePath string) map[string]string { … } func runAddr2Line(t *testing.T, dbgExePath, addr string) (funcname, path, lineno string) { … } const symName … func testAddr2Line(t *testing.T, dbgExePath, addr string) { … } // This is line 101. The test depends on that. func TestAddr2Line(t *testing.T) { … }