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

Function TEST

tests/cplusplus/Routing/PathNode.cpp:38–46  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36using namespace osvr::common;
37
38TEST(PathNode, getFullPath) {
39 PathTree tree;
40 ASSERT_EQ(getFullPath(tree.getNodeByPath("/")), "/") << "Root";
41 ASSERT_EQ(getFullPath(tree.getNodeByPath("/test")), "/test")
42 << "First level";
43 ASSERT_EQ(getFullPath(tree.getNodeByPath("/com_osvr_sample/MyDevice")),
44 "/com_osvr_sample/MyDevice")
45 << "Second level";
46}
47
48TEST(PathNode, getFullPathNormalizes) {
49 PathTree tree;

Callers

nothing calls this directly

Calls 1

getFullPathFunction · 0.85

Tested by

no test coverage detected