edith_codecs
Clone
https://git.tahinli.com/Tahinli/edith_codecs.git
0 watching0 forksRust370.3 MiB1786477Tahinli5 days ago3995 commits
| 1 | #!/usr/bin/env python3 |
| 2 | """Apply or revert one cargo-mutants mutant in place, from `cargo mutants --list --json`. |
| 3 | |
| 4 | Used by scripts/kill-matrix.sh on a scratch copy of the tree (never on the local checkout). |
| 5 | |
| 6 | mutate.py apply <mutants.json> <index> <root> # writes the mutated file, saves the original |
| 7 | mutate.py revert <root> # restores every file saved by apply |
| 8 | |
| 9 | The original bytes are kept in <root>/.mutate-backup/ so revert is exact. |
| 10 | """ |
| 11 | |
| 12 | |
| 13 | |
| 14 | |
| 15 | |
| 16 | |
| 17 | |
| 18 | # cargo-mutants spans are 1-based line and 1-based char column (inclusive start, exclusive end). |
| 19 | return + |
| 20 | |
| 21 | |
| 22 | |
| 23 | = |
| 24 | = |
| 25 | = |
| 26 | = |
| 27 | = |
| 28 | |
| 29 | = |
| 30 | |
| 31 | |
| 32 | |
| 33 | = |
| 34 | = |
| 35 | = |
| 36 | = |
| 37 | = |
| 38 | = |
| 39 | = |
| 40 | = + + |
| 41 | |
| 42 | |
| 43 | |
| 44 | |
| 45 | |
| 46 | |
| 47 | = |
| 48 | |
| 49 | return |
| 50 | |
| 51 | = |
| 52 | |
| 53 | |
| 54 | |
| 55 | |
| 56 | |
| 57 | |
| 58 | |
| 59 | == : |
| 60 | |
| 61 | |
| 62 |