Home | History | Annotate | Download | only in fix

Lines Matching refs:fn

16 	Fn   func(*ast.File) bool
23 func addTestCases(t []testCase, fn func(*ast.File) bool) {
24 // Fill in fn to avoid repetition in definitions.
25 if fn != nil {
27 if t[i].Fn == nil {
28 t[i].Fn = fn
37 func parseFixPrint(t *testing.T, fn func(*ast.File) bool, desc, in string, mustBeGofmt bool) (out string, fixed, ok bool) {
56 if fn == nil {
63 fixed = fn(file)
78 out, fixed, ok := parseFixPrint(t, tt.Fn, tt.Name, tt.In, true)
104 out2, fixed2, ok := parseFixPrint(t, tt.Fn, tt.Name+" output", out, true)