Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
148
void 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
157
THolder<int> CreateInt(int value) {
158
THolder<int> res(new int);
Callers
nothing calls this directly
Calls
2
MakeA
Function · 0.85
Release
Method · 0.45
Tested by
no test coverage detected