MCPcopy Create free account
hub / github.com/IChooseYou/Reclass / testCommandRowRootClassName

Method testCommandRowRootClassName

tests/test_editor.cpp:1025–1043  ·  view source on GitHub ↗

── Test: CommandRow root class name editable ──

Source from the content-addressed store, hash-verified

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() {

Callers

nothing calls this directly

Calls 6

applyDocumentMethod · 0.80
setCommandRowTextMethod · 0.80
metaForLineMethod · 0.80
beginInlineEditMethod · 0.80
isEditingMethod · 0.80
cancelInlineEditMethod · 0.80

Tested by

no test coverage detected