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

Method testBaseAddressEditBegins

tests/test_editor.cpp:867–882  ·  view source on GitHub ↗

── Test: base address edit begins on CommandRow (line 0) ──

Source from the content-addressed store, hash-verified

865
866 // ── Test: base address edit begins on CommandRow (line 0) ──
867 void testBaseAddressEditBegins() {
868 m_editor->applyDocument(m_result);
869
870 // Set CommandRow text with ADDR value (simulates controller)
871 m_editor->setCommandRowText(
872 QStringLiteral("source\u25BE \u00B7 0xD87B5E5000"));
873
874 // Begin base address edit on line 0 (CommandRow ADDR field)
875 bool ok = m_editor->beginInlineEdit(EditTarget::BaseAddress, 0);
876 QVERIFY2(ok, "Should be able to begin base address edit on CommandRow");
877 QVERIFY(m_editor->isEditing());
878
879 // Cancel and reset
880 m_editor->cancelInlineEdit();
881 m_editor->applyDocument(m_result);
882 }
883
884 // ── Test: cursor stays Arrow after left-click on a node ──
885 void testCursorAfterLeftClick() {

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