(t *testing.T)
| 36 | } |
| 37 | |
| 38 | func TestEditFileMissingFile(t *testing.T) { |
| 39 | s := EditFile(filepath.Join(t.TempDir(), "nope.txt"), "x", "y") |
| 40 | if !strings.HasPrefix(s, "(read error:") { |
| 41 | t.Fatalf("bad: %q", s) |
| 42 | } |
| 43 | } |
| 44 | |
| 45 | func TestEditFileOldNotFound(t *testing.T) { |
| 46 | dir := t.TempDir() |
nothing calls this directly
no test coverage detected