type testCase … var testCases … func addTestCases(t []testCase, fn func(*ast.File) bool) { … } func fnop(*ast.File) bool { … } func parseFixPrint(t *testing.T, fn func(*ast.File) bool, desc, in string, mustBeGofmt bool) (out string, fixed, ok bool) { … } func TestRewrite(t *testing.T) { … } func tdiff(t *testing.T, aname, a, bname, b string) { … }