── Test: composed text does not contain "// base:" (moved to cmd bar) ──
| 693 | |
| 694 | // ── Test: composed text does not contain "// base:" (moved to cmd bar) ── |
| 695 | void testBaseAddressDisplay() { |
| 696 | NodeTree tree = makeTestTree(); |
| 697 | tree.baseAddress = 0x10; |
| 698 | BufferProvider prov = makeTestProvider(); |
| 699 | ComposeResult result = compose(tree, prov); |
| 700 | |
| 701 | m_editor->applyDocument(result); |
| 702 | |
| 703 | // Root header is suppressed; verify no "// base:" anywhere in output |
| 704 | QVERIFY2(!result.text.contains("// base:"), |
| 705 | "Composed text should not contain '// base:' (consolidated into cmd bar)"); |
| 706 | |
| 707 | // kFirstDataLine should be the first field (root header suppressed) |
| 708 | const LineMeta* lm = m_editor->metaForLine(kFirstDataLine); |
| 709 | QVERIFY(lm); |
| 710 | QCOMPARE(lm->lineKind, LineKind::Field); |
| 711 | |
| 712 | m_editor->applyDocument(m_result); |
| 713 | } |
| 714 | |
| 715 | // ── Test: CommandRow ADDR span is valid ── |
| 716 | void testBaseAddressSpan() { |
nothing calls this directly
no test coverage detected