| 34 | namespace tests { |
| 35 | |
| 36 | TEST(MesosContainerizerPathsTest, BuildPathPrefixMode) |
| 37 | { |
| 38 | ContainerID parent; |
| 39 | parent.set_value("parent"); |
| 40 | |
| 41 | ContainerID child; |
| 42 | child.set_value("child"); |
| 43 | child.mutable_parent()->CopyFrom(parent); |
| 44 | |
| 45 | const string separator = "separator"; |
| 46 | |
| 47 | EXPECT_EQ( |
| 48 | buildPath(parent, separator, PREFIX), |
| 49 | path::join(separator, parent.value())); |
| 50 | |
| 51 | EXPECT_EQ( |
| 52 | buildPath(child, separator, PREFIX), |
| 53 | path::join(separator, parent.value(), separator, child.value())); |
| 54 | } |
| 55 | |
| 56 | |
| 57 | TEST(MesosContainerizerPathsTest, BuildPathSuffixMode) |