go/src/cmd/covdata/tool_test.go

var testTempDir

var preserveTmp

// TestMain used here so that we can leverage the test executable
// itself as a cmd/covdata executable; compare to similar usage in
// the cmd/go tests.
func TestMain(m *testing.M) {}

var tdmu

var tdcount

func tempDir(t *testing.T) string {}

const debugtrace

func gobuild(t *testing.T, indir string, bargs []string) {}

func emitFile(t *testing.T, dst, src string) {}

const mainPkgPath

func buildProg(t *testing.T, prog string, dir string, tag string, flags []string) (string, string) {}

type state

const debugWorkDir

func TestCovTool(t *testing.T) {}

const showToolInvocations

func runToolOp(t *testing.T, s state, op string, args []string) []string {}

func testDump(t *testing.T, s state) {}

func testPercent(t *testing.T, s state) {}

func testPkgList(t *testing.T, s state) {}

func testTextfmt(t *testing.T, s state) {}

func dumplines(lines []string) {}

type dumpCheck

// runDumpChecks examines the output of "go tool covdata debugdump"
// for a given output directory, looking for the presence or absence
// of specific markers.
func runDumpChecks(t *testing.T, s state, dir string, flags []string, checks []dumpCheck) {}

func testMergeSimple(t *testing.T, s state, indir1, indir2, tag string) {}

func testMergeSelect(t *testing.T, s state, indir1, indir2 string, tag string) {}

func testMergeCombinePrograms(t *testing.T, s state) {}

func testSubtract(t *testing.T, s state) {}

func testIntersect(t *testing.T, s state, indir1, indir2, tag string) {}

func testCounterClash(t *testing.T, s state) {}

func testEmpty(t *testing.T, s state) {}

func testCommandLineErrors(t *testing.T, s state, outdir string) {}