De-dup verify passes: drive analyze screen + dashboard from app::verify.
The analyze Issues pane and the dashboard Health rows each recomputed the same verify passes inline (pin-role mismatches, Power/Gnd net-mix, NC orphan rollup, model-driven checks) — the third and second copies of what the verify command also did. Route both screens through app::verify(System*) instead, so the passes live in exactly one place. Enrich VerifyReport with a per-pin OrphanPin detail list (module/part/pin + dropped flag) so the dashboard can still nest its dropped-singleton breakdown under the NC health line without re-walking modules/parts/pins. Output is unchanged in both screens (same label formats, same numbers). Prune the now-dead includes (nets/bsdl_check/connect/parts/pins as applicable, <unordered_set>) from both screens. Extend tests/test_verify.cpp to cover the new orphans detail. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -77,4 +77,19 @@ TEST_CASE("verify counts orphan pins by their import origin") {
|
||||
CHECK(r.orphan_imported == 1);
|
||||
CHECK(r.orphan_dropped == 1);
|
||||
CHECK(r.orphan_total() == 2);
|
||||
|
||||
// Per-pin detail carries the path and origin (the dashboard lists the
|
||||
// dropped ones under the NC health row).
|
||||
REQUIRE(r.orphans.size() == 2);
|
||||
int n_dropped = 0;
|
||||
bool dropped_path_ok = false;
|
||||
for (const auto &o : r.orphans) {
|
||||
if (o.dropped) {
|
||||
++n_dropped;
|
||||
if (o.module == "M" && o.part == "J1" && o.pin == "2")
|
||||
dropped_path_ok = true;
|
||||
}
|
||||
}
|
||||
CHECK(n_dropped == 1);
|
||||
CHECK(dropped_path_ok);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user