| 99 | // ColumnPath |
| 100 | |
| 101 | TEST(TestColumnPath, TestAttrs) { |
| 102 | ColumnPath path(std::vector<std::string>({"toplevel", "leaf"})); |
| 103 | |
| 104 | ASSERT_EQ(path.ToDotString(), "toplevel.leaf"); |
| 105 | |
| 106 | std::shared_ptr<ColumnPath> path_ptr = ColumnPath::FromDotString("toplevel.leaf"); |
| 107 | ASSERT_EQ(path_ptr->ToDotString(), "toplevel.leaf"); |
| 108 | |
| 109 | std::shared_ptr<ColumnPath> extended = path_ptr->extend("anotherlevel"); |
| 110 | ASSERT_EQ(extended->ToDotString(), "toplevel.leaf.anotherlevel"); |
| 111 | } |
| 112 | |
| 113 | // ---------------------------------------------------------------------- |
| 114 | // Primitive node |
nothing calls this directly
no test coverage detected