Files
qelectrotech-source-mirror/misc
ispyisail c1b93a8892 qet-mcp: pin the read tools' and qet_diff's exact answers in tests
A mutation audit -- planting one small bug at a time in the server's read
and diff code (a flipped comparison, a skipped branch, a dropped output
field, a list cap off by one) and running this suite -- caught 78 of 241
planted bugs with the tests that need no QElectroTech binary. qet_elements,
qet_conductors and their row builders caught none: a filter that never
applied, a missing field or a wrong default limit all passed.

Two new classes pin exact output on small hand-made projects:
ReadToolContracts (qet_project_info, qet_elements, qet_conductors: every
field, every filter, limit and truncation, legacy and current conductor
keys) and DiffContracts (every qet_diff section: moves, relabels, info,
conductors and the unstable-key warning, texts/shapes/pictures by uuid and
by position, element text fields, folio and project fields, terminal
strips, and every list cap). The same audit now catches 240 of 241; the
one left is equivalent (rsplit("/", 1) vs rsplit("/", 2) then [-1]).

Tests only; no change to the server.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-28 12:42:01 +13:00
..
2012-04-04 18:43:10 +00:00
2012-04-04 18:43:10 +00:00
2026-04-25 12:54:52 +02:00