| 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 |
nothing calls this directly
no test coverage detected