3
0
mirror of https://github.com/larvit/adf-codec.git synced 2026-11-12 11:48:29 +01:00

Say run.sh mutates only nodes wholly inside the changed lines

This commit is contained in:
2026-10-28 20:32:35 +01:00
committed by Lillem4n
parent fac55a8a63
commit 8e1b8e6f7b
+1 -1
View File
@@ -4,7 +4,7 @@ cd "$(dirname "$0")/.."
source ./docker-runner.sh source ./docker-runner.sh
base=$(git merge-base "${1:-origin/main}" HEAD) base=$(git merge-base "${1:-origin/main}" HEAD)
# Each hunk's added lines as path:first-last, in the working tree's numbering; a hunk that only deletes has none to mutate. # Each hunk's added lines as path:first-last, in the working tree's numbering; Stryker keeps a mutant only wholly inside one, so a hunk that only deletes has none.
mutate=$(git diff --no-ext-diff --no-prefix -U0 --inter-hunk-context=0 --no-color "$base" -- 'src/*.ts' ':!src/*.test.ts' ':!src/conformance/property-harness.ts' | awk ' mutate=$(git diff --no-ext-diff --no-prefix -U0 --inter-hunk-context=0 --no-color "$base" -- 'src/*.ts' ':!src/*.test.ts' ':!src/conformance/property-harness.ts' | awk '
/^\+\+\+ / { path = $2 } /^\+\+\+ / { path = $2 }
/^@@ / { /^@@ / {