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

Method testCommandRowRootClassEdits

tests/test_editor.cpp:1004–1022  ·  view source on GitHub ↗

── Test: CommandRow root class edits on line 0 ──

Source from the content-addressed store, hash-verified

1002
1003 // ── Test: CommandRow root class edits on line 0 ──
1004 void testCommandRowRootClassEdits() {
1005 m_editor->applyDocument(m_result);
1006
1007 // Set CommandRow text with root class (simulates controller.updateCommandRow)
1008 m_editor->setCommandRowText(
1009 QStringLiteral("source\u25BE \u00B7 0xD87B5E5000 \u00B7 struct\u25BE _PEB64 {"));
1010
1011 // RootClassName should be allowed on CommandRow (line 0)
1012 bool ok = m_editor->beginInlineEdit(EditTarget::RootClassName, 0);
1013 QVERIFY2(ok, "RootClassName edit should be allowed on CommandRow");
1014 QVERIFY(m_editor->isEditing());
1015 m_editor->cancelInlineEdit();
1016
1017 // RootClassType should be allowed on CommandRow (line 0)
1018 ok = m_editor->beginInlineEdit(EditTarget::RootClassType, 0);
1019 QVERIFY2(ok, "RootClassType edit should be allowed on CommandRow");
1020 QVERIFY(m_editor->isEditing());
1021 m_editor->cancelInlineEdit();
1022 }
1023
1024 // ── Test: CommandRow root class name editable ──
1025 void testCommandRowRootClassName() {

Callers

nothing calls this directly

Calls 5

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

Tested by

no test coverage detected