(t *testing.T)
| 47 | } |
| 48 | |
| 49 | func TestReadFile(t *testing.T) { |
| 50 | dir := t.TempDir() |
| 51 | path := filepath.Join(dir, "test.txt") |
| 52 | require.NoError(t, os.WriteFile(path, []byte("hello world"), 0644)) |
| 53 | |
| 54 | result := ReadFile(t, path) |
| 55 | assert.Equal(t, "hello world", result) |
| 56 | } |
nothing calls this directly
no test coverage detected