MCPcopy Create free account
hub / github.com/MiniZinc/MiniZincIDE / tree_building

Function tree_building

cp-profiler/src/cpprofiler/tests/execution_test.cpp:322–337  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

320}
321
322void tree_building(Conductor &c)
323{
324
325 /// create a dummy root node
326 auto ex = c.addNewExecution("test tree");
327
328 auto &tree = ex->tree();
329
330 auto root = tree.createRoot(0);
331
332 auto n1 = tree.promoteNode(NodeID::NoNode, -1, 0, tree::NodeStatus::FAILED, "1");
333 // auto n2 = tree.promoteNode(root, 1, 0, tree::NodeStatus::FAILED, "2");
334
335 // auto n3 = tree.promoteNode(n1, 0, 0, tree::NodeStatus::FAILED, "3");
336 // auto n4 = tree.promoteNode(n1, 1, 0, tree::NodeStatus::FAILED, "4");
337}
338
339void hiding_failed_test(Conductor &c)
340{

Callers

nothing calls this directly

Calls 3

addNewExecutionMethod · 0.80
promoteNodeMethod · 0.80
createRootMethod · 0.45

Tested by

no test coverage detected