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

Method testInsertInvalidParent

tests/test_context_menu.cpp:370–376  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

368 // ── Insert with invalid parent still works (root-level) ──
369
370 void testInsertInvalidParent() {
371 int before = countNodes();
372 // parentId=999 doesn't exist, but insertNode doesn't validate parent
373 m_ctrl->insertNode(999, 0, NodeKind::Hex32, "orphan");
374 QApplication::processEvents();
375 QCOMPARE(countNodes(), before + 1);
376 }
377
378 // ── Duplicate out-of-range index is no-op ──
379

Callers

nothing calls this directly

Calls 1

insertNodeMethod · 0.80

Tested by

no test coverage detected