- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for TestBackupFile (0.26 sec)
-
src/cmd/gofmt/gofmt_test.go
} data, err = os.ReadFile(golden) if err != nil { t.Error(err) } if bytes.Contains(data, []byte("\r")) { t.Errorf("%s contains CR's", golden) } } func TestBackupFile(t *testing.T) { dir, err := os.MkdirTemp("", "gofmt_test") if err != nil { t.Fatal(err) } defer os.RemoveAll(dir) name, err := backupFile(filepath.Join(dir, "foo.go"), []byte(" package main"), 0644)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 10 19:22:49 UTC 2022 - 4.3K bytes - Viewed (0)