func writeFile(t *testing.T, path string, contents []byte) { … } func writePkgConfig(t *testing.T, outdir, tag, ppath, pname string, gran string, mpath string) string { … } func writeOutFileList(t *testing.T, infiles []string, outdir, tag string) ([]string, string) { … } func runPkgCover(t *testing.T, outdir string, tag string, incfg string, mode string, infiles []string, errExpected bool) ([]string, string, string) { … } func TestCoverWithCfg(t *testing.T) { … } func TestCoverOnPackageWithNoTestFiles(t *testing.T) { … } func testCoverNoTestsYesFuncs(t *testing.T) { … } func testCoverNoTestsNoFuncs(t *testing.T) { … }