Commit 1e3d5bf
test(templated_uri): skip mutants on percent_encode to avoid runner OOM
`cargo mutants` mutates the manual index advance `i += 1` in `percent_encode`
into `i *= 1`, which never advances the loop index and spins the `while` loop
forever, pushing `%XX` escapes into the output buffer until the process is
killed for running out of memory. That hangs the mutation-testing runner (it is
SIGTERM'd mid-run) instead of yielding a killable result.
Mark the function `#[cfg_attr(test, mutants::skip)]`, matching the established
convention for loop-counter mutants elsewhere in the workspace. The encoder's
output is already pinned by the differential, pseudo-random fuzz, exact-hex, and
re-validation tests in the same module.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 10499452-0720-40ab-9e9f-506e1fd3ccaf1 parent 31dbe74 commit 1e3d5bf
1 file changed
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
274 | 274 | | |
275 | 275 | | |
276 | 276 | | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
277 | 282 | | |
278 | 283 | | |
279 | 284 | | |
| |||
0 commit comments