Home | History | Annotate | Download | only in gofmt

Lines Matching refs:gofmt

5 // This test applies gofmt to all Go files under -root.
7 // filenames via the -files flag: go test -files=gofmt.go .
34 func gofmt(fset *token.FileSet, filename string, src *bytes.Buffer) error {
70 // gofmt file
71 if err = gofmt(fset, filename, b1); err != nil {
72 t.Errorf("1st gofmt failed: %v", err)
80 // gofmt result again
81 if err = gofmt(fset, filename, b2); err != nil {
82 t.Errorf("2nd gofmt failed: %v", err)
88 t.Errorf("gofmt %s not idempotent", filename)