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

Method testPaddingNode

tests/test_generator.cpp:423–443  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

421 // ── Padding node ──
422
423 void testPaddingNode() {
424 rcx::NodeTree tree;
425 rcx::Node root;
426 root.kind = rcx::NodeKind::Struct;
427 root.name = "PadTest";
428 root.structTypeName = "PadTest";
429 root.parentId = 0;
430 int ri = tree.addNode(root);
431 uint64_t rootId = tree.nodes[ri].id;
432
433 rcx::Node pad;
434 pad.kind = rcx::NodeKind::Padding;
435 pad.name = "reserved";
436 pad.parentId = rootId;
437 pad.offset = 0;
438 pad.arrayLen = 16;
439 tree.addNode(pad);
440
441 QString result = rcx::renderCpp(tree, rootId);
442 QVERIFY(result.contains("uint8_t reserved[16];"));
443 }
444
445 // ── Full SDK export (multiple root structs) ──
446

Callers

nothing calls this directly

Calls 2

renderCppFunction · 0.85
addNodeMethod · 0.45

Tested by

no test coverage detected