(t *testing.T)
| 30 | } |
| 31 | |
| 32 | func TestEditFileEmptyPath(t *testing.T) { |
| 33 | if got := EditFile("", "x", "y"); got != "(empty path)" { |
| 34 | t.Fatalf("bad: %q", got) |
| 35 | } |
| 36 | } |
| 37 | |
| 38 | func TestEditFileMissingFile(t *testing.T) { |
| 39 | s := EditFile(filepath.Join(t.TempDir(), "nope.txt"), "x", "y") |
nothing calls this directly
no test coverage detected