readFile returns the file's content or fails the test.
(t *testing.T, path string)
| 40 | |
| 41 | // readFile returns the file's content or fails the test. |
| 42 | func readFile(t *testing.T, path string) string { |
| 43 | t.Helper() |
| 44 | data, err := os.ReadFile(path) |
| 45 | require.NoError(t, err) |
| 46 | return string(data) |
| 47 | } |
| 48 | |
| 49 | // TestMultipatch_HappyPathSingleFile is the smoke test: one edit |
| 50 | // against one file lands cleanly. Mirrors handlePatch but goes |
no outgoing calls
no test coverage detected