const srcCode … func want(t *testing.T, out string, desired string) { … } func wantN(t *testing.T, out string, desired string, n int) { … } func TestPathStuff(t *testing.T) { … } func TestLogOpt(t *testing.T) { … } func testLogOpt(t *testing.T, flag, src, outfile string) (string, error) { … } func testLogOptDir(t *testing.T, dir, flag, src, outfile string) (string, error) { … } func testCopy(t *testing.T, dir, goarch, goos, src, outfile string) (string, error) { … }