| 36 | using namespace osvr::common; |
| 37 | |
| 38 | TEST(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 | |
| 48 | TEST(PathNode, getFullPathNormalizes) { |
| 49 | PathTree tree; |
nothing calls this directly
no test coverage detected