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

Method TestHolderPtr

util/generic/ptr_ut.cpp:148–155  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

146}
147
148void TPointerTest::TestHolderPtr() {
149 {
150 THolder<A> a1(MakeA());
151 THolder<A> a2(a1.Release());
152 }
153
154 UNIT_ASSERT_VALUES_EQUAL(cnt, 0);
155}
156
157THolder<int> CreateInt(int value) {
158 THolder<int> res(new int);

Callers

nothing calls this directly

Calls 2

MakeAFunction · 0.85
ReleaseMethod · 0.45

Tested by

no test coverage detected