(t *testing.T)
| 33 | } |
| 34 | |
| 35 | func TestAppendToFileFallback_NewFile(t *testing.T) { |
| 36 | f := filepath.Join(t.TempDir(), "summary.json") |
| 37 | |
| 38 | err := appendToFileFallback(f, []byte("line1\n")) |
| 39 | require.NoError(t, err) |
| 40 | |
| 41 | got, err := os.ReadFile(f) |
| 42 | require.NoError(t, err) |
| 43 | require.Equal(t, "line1\n", string(got)) |
| 44 | } |
nothing calls this directly
no test coverage detected