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

Function TEST

3rdparty/libprocess/src/tests/owned_tests.cpp:33–47  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31
32
33TEST(OwnedTest, Access)
34{
35 Foo* foo = new Foo();
36 foo->set(42);
37
38 Owned<Foo> owned(foo);
39
40 EXPECT_EQ(42, owned->get());
41 EXPECT_EQ(42, (*owned).get());
42
43 owned->set(10);
44
45 EXPECT_EQ(10, owned->get());
46 EXPECT_EQ(10, (*owned).get());
47}
48
49
50TEST(OwnedTest, Null)

Callers

nothing calls this directly

Calls 5

shareMethod · 0.80
uniqueMethod · 0.80
setMethod · 0.45
getMethod · 0.45
releaseMethod · 0.45

Tested by

no test coverage detected