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

Method testInsertAtRootLevel

tests/test_context_menu.cpp:191–200  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

189 // ── Insert at root level (parentId=0) ──
190
191 void testInsertAtRootLevel() {
192 int before = countNodes();
193 m_ctrl->insertNode(0, -1, NodeKind::Hex64, "rootField");
194 QApplication::processEvents();
195
196 QCOMPARE(countNodes(), before + 1);
197 int idx = findNode("rootField");
198 QVERIFY(idx >= 0);
199 QCOMPARE(m_doc->tree.nodes[idx].parentId, (uint64_t)0);
200 }
201
202 // ── Append 128 bytes adds exactly 16 Hex64 nodes ──
203

Callers

nothing calls this directly

Calls 2

findNodeFunction · 0.85
insertNodeMethod · 0.80

Tested by

no test coverage detected