MCPcopy Create free account
hub / github.com/OSVR/OSVR-Core / getFullTree

Function getFullTree

tests/cplusplus/Util/TreeNode.cpp:254–265  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

252};
253
254StringTreePtr getFullTree() {
255 // Setup tree in all the different ways possible as above.
256 StringTreePtr tree(StringTree::createRoot());
257 tree->getOrCreateChildByName("A");
258 tree->getOrCreateChildByName("A").value() = "myVal";
259 StringTree::create(*tree, "B");
260 tree->getOrCreateChildByName("B").value() = "mySecondVal";
261 tree->getOrCreateChildByName("C").value() = "myThirdVal";
262 StringTree::create(*tree, "D").value() = "myFourthVal";
263 StringTree::create(*tree, "E", "myFifthVal");
264 return tree;
265}
266
267TEST(TreeNode, Comparisons) {
268 StringTreePtr tree = getFullTree();

Callers 1

TESTFunction · 0.85

Calls 1

valueMethod · 0.80

Tested by

no test coverage detected