MCPcopy Create free account
hub / github.com/cginternals/globjects / TEST_F

Function TEST_F

source/tests/globjects-test/Referenced_test.cpp:19–28  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

17};
18
19TEST_F(Referenced_test, CountsReferences)
20{
21 globjects::Referenced * ref = new globjects::Referenced;
22
23 EXPECT_EQ(ref->refCounter(), 0);
24 ref->ref();
25 EXPECT_EQ(ref->refCounter(), 1);
26
27 ref->destroy();
28}
29
30TEST_F(Referenced_test, DeletesItself)
31{

Callers

nothing calls this directly

Calls 4

refCounterMethod · 0.80
refMethod · 0.80
unrefMethod · 0.80
destroyMethod · 0.45

Tested by

no test coverage detected