$ node verify/closing-line.check.mjs shape
mutate closing-shape
files lib/lineup.mjs (lines 1 to 56)
planted 36 edits, every one this command can make here.
killed    15. The check failed on a planted defect.
survived  21. The check passed with the defect in place.
invalid   0. The edit left code that does not parse, so it was not run.
score     15 of 36 caught of the defects that ran, 41.7%.

survivors. Each is a defect the check did not notice.
  lib/lineup.mjs:4  number: 100 becomes 101
  lib/lineup.mjs:10  word: 'u' becomes 'gu'
  lib/lineup.mjs:40  condition: typeof text !== 'string' || text.trim() === '' becomes true
  lib/lineup.mjs:40  condition: typeof text !== 'string' || text.trim() === '' becomes false
  lib/lineup.mjs:40  operand: delete typeof text !== 'string' ||
  lib/lineup.mjs:40  operand: delete || text.trim() === ''
  lib/lineup.mjs:40  compare: !== becomes ===
  lib/lineup.mjs:40  word: 'string' becomes 'u'
  lib/lineup.mjs:40  word: 'string' becomes 'gu'
  lib/lineup.mjs:40  logic: || becomes &&
  lib/lineup.mjs:40  compare: === becomes !==
  lib/lineup.mjs:41  condition: HAS_HIDDEN.test(text) becomes true
  lib/lineup.mjs:41  condition: HAS_HIDDEN.test(text) becomes false
  lib/lineup.mjs:42  condition: size(text.trim()) > LINEUP_MAX becomes true
  lib/lineup.mjs:42  condition: size(text.trim()) > LINEUP_MAX becomes false
  lib/lineup.mjs:42  compare: > becomes >=
  lib/lineup.mjs:43  condition: LIGHT.test(text) becomes true
  lib/lineup.mjs:43  condition: LIGHT.test(text) becomes false
  lib/lineup.mjs:44  condition: WHOLE_LINE.test(text) becomes true
  lib/lineup.mjs:44  condition: WHOLE_LINE.test(text) becomes false
  lib/lineup.mjs:54  operand: delete !line ||

next. Read each survivor: is it a gap in the check, or an edit that changes nothing? For a gap, add a case that fails with that defect in, then run this again. --min <percent> makes a lower score exit 1.

What this cannot show. A survivor is a defect the check did not notice, or an edit that changes nothing a person could see (an equivalent defect). Only a reader can tell which.
A count is about the defects planted and says nothing about the ones that were not.
Edits are single and come from a fixed list, so a defect that needs two is not measured.
The automatic edits read JavaScript and TypeScript. --edits takes a list of edits for any other language.

every defect
  survived  lib/lineup.mjs:4  number: 100 becomes 101
  survived  lib/lineup.mjs:10  word: 'u' becomes 'gu'
  killed    lib/lineup.mjs:10  word: 'u' becomes 'string'. exit 1
  killed    lib/lineup.mjs:11  word: 'gu' becomes 'u'. exit 1
  killed    lib/lineup.mjs:11  word: 'gu' becomes 'string'. exit 1
  killed    lib/lineup.mjs:22  compare: <= becomes <. exit 1
  survived  lib/lineup.mjs:40  condition: typeof text !== 'string' || text.trim() === '' becomes true
  survived  lib/lineup.mjs:40  condition: typeof text !== 'string' || text.trim() === '' becomes false
  survived  lib/lineup.mjs:40  operand: delete typeof text !== 'string' ||
  survived  lib/lineup.mjs:40  operand: delete || text.trim() === ''
  survived  lib/lineup.mjs:40  compare: !== becomes ===
  survived  lib/lineup.mjs:40  word: 'string' becomes 'u'
  survived  lib/lineup.mjs:40  word: 'string' becomes 'gu'
  survived  lib/lineup.mjs:40  logic: || becomes &&
  survived  lib/lineup.mjs:40  compare: === becomes !==
  survived  lib/lineup.mjs:41  condition: HAS_HIDDEN.test(text) becomes true
  survived  lib/lineup.mjs:41  condition: HAS_HIDDEN.test(text) becomes false
  survived  lib/lineup.mjs:42  condition: size(text.trim()) > LINEUP_MAX becomes true
  survived  lib/lineup.mjs:42  condition: size(text.trim()) > LINEUP_MAX becomes false
  survived  lib/lineup.mjs:42  compare: > becomes >=
  survived  lib/lineup.mjs:43  condition: LIGHT.test(text) becomes true
  survived  lib/lineup.mjs:43  condition: LIGHT.test(text) becomes false
  survived  lib/lineup.mjs:44  condition: WHOLE_LINE.test(text) becomes true
  survived  lib/lineup.mjs:44  condition: WHOLE_LINE.test(text) becomes false
  killed    lib/lineup.mjs:52  condition: typeof text !== 'string' becomes true. exit 1
  killed    lib/lineup.mjs:52  condition: typeof text !== 'string' becomes false. exit 1
  killed    lib/lineup.mjs:52  compare: !== becomes ===. exit 1
  killed    lib/lineup.mjs:52  word: 'string' becomes 'u'. exit 1
  killed    lib/lineup.mjs:52  word: 'string' becomes 'gu'. exit 1
  killed    lib/lineup.mjs:54  condition: !line || LIGHT.test(line) || WHOLE_LINE.test(line) becomes true. exit 1
  killed    lib/lineup.mjs:54  condition: !line || LIGHT.test(line) || WHOLE_LINE.test(line) becomes false. exit 1
  survived  lib/lineup.mjs:54  operand: delete !line ||
  killed    lib/lineup.mjs:54  operand: delete || LIGHT.test(line). exit 1
  killed    lib/lineup.mjs:54  operand: delete || WHOLE_LINE.test(line). exit 1
  killed    lib/lineup.mjs:54  logic: || becomes &&. exit 1
  killed    lib/lineup.mjs:54  logic: || becomes &&. exit 1
