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