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

Function Y_UNIT_TEST

library/cpp/containers/flat_hash/ut/table_ut.cpp:91–100  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

89
90Y_UNIT_TEST_SUITE(TCommonTableAtomsTest) {
91 Y_UNIT_TEST(InitTest) {
92 ForEachTable<int>([](auto t) {
93 GET_TYPE(t) table{ INIT_SIZE };
94
95 UNIT_ASSERT(table.empty());
96 UNIT_ASSERT_EQUAL(table.size(), 0);
97 UNIT_ASSERT_EQUAL(table.bucket_count(), INIT_SIZE);
98 UNIT_ASSERT_EQUAL(table.bucket_size(RandomNumber<size_t>(INIT_SIZE)), 0);
99 }, TAtomContainers{});
100 }
101
102 Y_UNIT_TEST(IteratorTest) {
103 ForEachTable<int>([](auto t) {

Callers

nothing calls this directly

Calls 15

distanceFunction · 0.85
IotaFunction · 0.85
ShuffleRangeFunction · 0.50
moveFunction · 0.50
SortFunction · 0.50
emptyMethod · 0.45
sizeMethod · 0.45
bucket_countMethod · 0.45
bucket_sizeMethod · 0.45
beginMethod · 0.45
endMethod · 0.45
cbeginMethod · 0.45

Tested by

no test coverage detected