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

Method testComputeStructAlignmentEmpty

tests/test_compose.cpp:1956–1967  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1954 }
1955
1956 void testComputeStructAlignmentEmpty() {
1957 NodeTree tree;
1958 Node root;
1959 root.kind = NodeKind::Struct;
1960 root.name = "Empty";
1961 root.parentId = 0;
1962 int ri = tree.addNode(root);
1963 uint64_t rootId = tree.nodes[ri].id;
1964
1965 // Empty struct → alignment 1
1966 QCOMPARE(tree.computeStructAlignment(rootId), 1);
1967 }
1968
1969 void testCommandRowRootNameSpan() {
1970 // Name span should cover the class name in the merged command row

Callers

nothing calls this directly

Calls 2

addNodeMethod · 0.45

Tested by

no test coverage detected