(t *testing.T, dir, name, content string)
| 12 | ) |
| 13 | |
| 14 | func writeTestFile(t *testing.T, dir, name, content string) { |
| 15 | t.Helper() |
| 16 | if err := os.WriteFile(filepath.Join(dir, name), []byte(content), 0644); err != nil { |
| 17 | t.Fatal(err) |
| 18 | } |
| 19 | } |
| 20 | |
| 21 | func TestReadLines_Disk_FullFile(t *testing.T) { |
| 22 | dir := t.TempDir() |
no outgoing calls
no test coverage detected