Repository navigation
Commit d11e250
committed
test(write-to-file): run the edit-type decision on every platform the mutation run runs on
The two tests that name the edit type the existence probe installs were gated off
on win32, and that gate belongs to their absolute-path assertion, not to the
decision they name. The mocked harness already runs this branch on Windows in the
directory-creation tests next door.
Two tests are added, ungated, each naming the value it expects: modify for a target
that exists, create for one that does not. Controls measured on this machine with
the pinned interpreter:
- replacing the modify literal at WriteToFileTool.ts:437 with the empty string
fails installs modify as the edit type for a target that already exists
(AssertionError: expected '' to be 'modify'), one test failed, five still skipped
- replacing the create literal with the empty string fails
installs create as the edit type for a target that does not exist yet
(expected '' to be 'create'), one test failed, five still skipped
- unmutated: 78 passed, 5 skipped
prettier --check clean, eslint --max-warnings=0 clean with no suppression change,
tsc --noEmit clean.1 parent 89c1bd8 commit d11e250
1 file changed
Lines changed: 19 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
294 | 294 | | |
295 | 295 | | |
296 | 296 | | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
297 | 316 | | |
298 | 317 | | |
299 | 318 | | |
| |||
0 commit comments