// TestMain executes the test binary as the pprof command if // GO_PPROFTEST_IS_PPROF is set, and runs the tests otherwise. func TestMain(m *testing.M) { … } // pprofPath returns the path to the "pprof" binary to run. func pprofPath(t testing.TB) string { … } // See also runtime/pprof.cpuProfilingBroken. func mustHaveCPUProfiling(t *testing.T) { … } func mustHaveDisasm(t *testing.T) { … } // TestDisasm verifies that cmd/pprof can successfully disassemble functions. // // This is a regression test for issue 46636. func TestDisasm(t *testing.T) { … }