(t *testing.T)
| 30 | } |
| 31 | |
| 32 | func TestReadFileMissingFile(t *testing.T) { |
| 33 | s := ReadFile(filepath.Join(t.TempDir(), "nope.txt")) |
| 34 | if !strings.HasPrefix(s, "(read error:") { |
| 35 | t.Fatalf("expected (read error: ...) string, got %q", s) |
| 36 | } |
| 37 | } |
| 38 | |
| 39 | // TestReadFileTruncatesOversizeContent: ReadFile obeys the same Truncate |
| 40 | // head+tail cap as every other tool. Oversize content must carry the marker so |
nothing calls this directly
no test coverage detected