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

Function TEST_F

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

Source from the content-addressed store, hash-verified

17};
18
19TEST_F(ref_ptr_test, DeletesItsReferenced)
20{
21 // the ReferencedMock instance should be deleted on function exit
22
23 globjects::ref_ptr<ReferencedMock> ref = new ReferencedMock;
24 EXPECT_CALL(*ref, Die()).Times(1);
25}
26
27TEST_F(ref_ptr_test, SurvivesWhenReferenced)
28{

Callers

nothing calls this directly

Calls 1

refCounterMethod · 0.80

Tested by

no test coverage detected