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

Function TEST_F

src/tests/containerizer/nested_mesos_containerizer_tests.cpp:172–204  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

170
171
172TEST_F(NestedMesosContainerizerTest, NestedContainerID)
173{
174 ContainerID id1;
175 id1.set_value(id::UUID::random().toString());
176
177 ContainerID id2;
178 id2.set_value(id::UUID::random().toString());
179
180 EXPECT_EQ(id1, id1);
181 EXPECT_NE(id1, id2);
182
183 ContainerID id3 = id1;
184 id3.mutable_parent()->CopyFrom(id2);
185
186 EXPECT_EQ(id3, id3);
187 EXPECT_NE(id3, id1);
188
189 hashset<ContainerID> ids;
190 ids.insert(id2);
191 ids.insert(id3);
192
193 EXPECT_TRUE(ids.contains(id2));
194 EXPECT_TRUE(ids.contains(id3));
195 EXPECT_FALSE(ids.contains(id1));
196
197 ostringstream out1;
198 out1 << id1;
199 EXPECT_EQ(id1.value(), out1.str());
200
201 ostringstream out2;
202 out2 << id3;
203 EXPECT_EQ(strings::join(".", id2.value(), id3.value()), out2.str());
204}
205
206
207TEST_P(NestedMesosContainerizerTest, ROOT_CGROUPS_LaunchNested)

Callers

nothing calls this directly

Calls 15

randomFunction · 0.85
createEnvironmentFunction · 0.85
createCommandInfoFunction · 0.85
createExecutorInfoFunction · 0.85
createContainerConfigFunction · 0.85
NoneClass · 0.85
getForkedPidPathFunction · 0.85
getMetaRootDirFunction · 0.85
getSandboxPathFunction · 0.85
FutureSatisfyFunction · 0.85
createContainerInfoFunction · 0.85
createVolumeHostPathFunction · 0.85

Tested by

no test coverage detected