mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-09-29 14:14:15 +02:00
fdef38eba8
tools/qet-mcp-audit/mutate.py over the code changed since #1095 (_build_script, the diff helpers, _parse_script_output, tool_items and the wire-end keys of #1118), tests needing no QElectroTech only: master f530b7636's suite noticed 531 of 578 planted bugs (92 %). With these tests, 568 (98 %). The 10 left are equivalent: rsplit("/", 1) vs 2, a 1e-6 tolerance compared with < or <=, a one-letter orientation sliced [:1] or [:2], branches that only touch parts without terminals, and the placeholder terminal 0 a conductor uuid overwrites. - Every argument kind refuses what it cannot take, before any launch: malformed indices, bool, points and nodes, search_and_replace with an unknown kind or conductor field or an empty element_info field, "conductor" given with "element" or "terminal" alone, an op that is not an object -- and the same kinds accept what they should. - _parse_script_output reports capabilities (none logged = unknown, not "nothing missing"), notes on the right op, save and stopped_early; ignores a line without the marker even when it would parse, and a line of a kind it does not know. - A uuid wire end in a column of terminals (same x) keys like the numbered one: the match is on x, y and orientation together. Tests only; 264/264. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>