── Test: CommandRow root class name editable ──
| 1023 | |
| 1024 | // ── Test: CommandRow root class name editable ── |
| 1025 | void testCommandRowRootClassName() { |
| 1026 | m_editor->applyDocument(m_result); |
| 1027 | |
| 1028 | // Set CommandRow with root class |
| 1029 | m_editor->setCommandRowText( |
| 1030 | QStringLiteral("source\u25BE \u00B7 0xD87B5E5000 \u00B7 struct\u25BE _PEB64 {")); |
| 1031 | |
| 1032 | // Line 0 is CommandRow |
| 1033 | const LineMeta* lm = m_editor->metaForLine(0); |
| 1034 | QVERIFY(lm); |
| 1035 | QCOMPARE(lm->lineKind, LineKind::CommandRow); |
| 1036 | |
| 1037 | // RootClassName should work |
| 1038 | QVERIFY(m_editor->beginInlineEdit(EditTarget::RootClassName, 0)); |
| 1039 | QVERIFY(m_editor->isEditing()); |
| 1040 | m_editor->cancelInlineEdit(); |
| 1041 | |
| 1042 | m_editor->applyDocument(m_result); |
| 1043 | } |
| 1044 | |
| 1045 | // ── Test: root header/footer are suppressed (CommandRow replaces them) ── |
| 1046 | void testRootFoldSuppressed() { |
nothing calls this directly
no test coverage detected