(t *testing.T)
| 24 | } |
| 25 | |
| 26 | func TestReadFileEmptyPath(t *testing.T) { |
| 27 | if got := ReadFile(""); got != "(empty path)" { |
| 28 | t.Fatalf("empty path handling wrong: %q", got) |
| 29 | } |
| 30 | } |
| 31 | |
| 32 | func TestReadFileMissingFile(t *testing.T) { |
| 33 | s := ReadFile(filepath.Join(t.TempDir(), "nope.txt")) |
nothing calls this directly
no test coverage detected