mirror of
https://github.com/unclebob/mutator.git
synced 2026-11-26 18:58:50 +00:00
A reader quote is a quoting_lit, so '(+ 1 0) was not covered by the (quote ...) test. The skip returned True there and the mutant survived. A + inside a vector is not a call, a symbol True is not a boolean, and the anchor of a Clojure site is its own line. _clojure_text repeated its type check with a child-count clause, and _is_head's final return never ran because the symbol is a child of its list. Both are gone. Proved by the Clojure site tests. mutator on src/mutator/sites.py then scored 66 killed, 0 survived, 0 uncovered. The suite passes (119 tests, and the SwiftPM run is skipped because swift is not installed). Co-authored-by: Robert C. Martin <[email protected]>