MCPcopy Create free account
hub / github.com/catboost/catboost / TestSimpleIntrPtr

Method TestSimpleIntrPtr

util/generic/ptr_ut.cpp:135–146  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

133}
134
135void TPointerTest::TestSimpleIntrPtr() {
136 {
137 TSimpleIntrusivePtr<A> a1(MakeA());
138 TSimpleIntrusivePtr<A> a2(MakeA());
139 TSimpleIntrusivePtr<A> a3 = a2;
140
141 a1 = a2;
142 a2 = a3;
143 }
144
145 UNIT_ASSERT_VALUES_EQUAL(cnt, 0);
146}
147
148void TPointerTest::TestHolderPtr() {
149 {

Callers

nothing calls this directly

Calls 1

MakeAFunction · 0.85

Tested by

no test coverage detected