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

Function TEST

3rdparty/libprocess/src/tests/shared_tests.cpp:34–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

32
33
34TEST(SharedTest, ConstAccess)
35{
36 Foo* foo = new Foo();
37 foo->set(10);
38
39 Shared<Foo> shared(foo);
40
41 EXPECT_EQ(10, shared->get());
42
43 // The following won't compile.
44 // shared->set(20);
45}
46
47
48TEST(SharedTest, Null)

Callers

nothing calls this directly

Calls 6

uniqueMethod · 0.80
ownMethod · 0.80
setMethod · 0.45
getMethod · 0.45
resetMethod · 0.45
isPendingMethod · 0.45

Tested by

no test coverage detected