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

Function Y_UNIT_TEST

util/draft/holder_vector_ut.cpp:6–10  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4
5Y_UNIT_TEST_SUITE(THolderVectorTest) {
6 Y_UNIT_TEST(TestCreateEmpty) {
7 THolderVector<int> ints;
8 UNIT_ASSERT_EQUAL(ints.Size(), 0);
9 UNIT_ASSERT(!ints);
10 }
11
12 Y_UNIT_TEST(TestCreateNonEmpty) {
13 THolderVector<int> ints(5);

Callers

nothing calls this directly

Calls 10

moveFunction · 0.50
SizeMethod · 0.45
PushBackMethod · 0.45
ResetMethod · 0.45
ResizeMethod · 0.45
SwapMethod · 0.45
emptyMethod · 0.45
sizeMethod · 0.45
frontMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected