MCPcopy Create free account
hub / github.com/apache/mesos / TEST

Function TEST

src/tests/containerizer/mesos_containerizer_paths_tests.cpp:36–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34namespace tests {
35
36TEST(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
57TEST(MesosContainerizerPathsTest, BuildPathSuffixMode)

Callers

nothing calls this directly

Calls 4

buildPathFunction · 0.85
CopyFromMethod · 0.80
joinFunction · 0.50
valueMethod · 0.45

Tested by

no test coverage detected