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

Method TestDefaultConstructor

util/generic/hash_ut.cpp:813–822  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

811}
812
813void THashTest::TestDefaultConstructor() {
814 THashSet<int> set;
815
816 UNIT_ASSERT(set.begin() == set.end());
817
818 UNIT_ASSERT(set.find(0) == set.end());
819
820 auto range = set.equal_range(0);
821 UNIT_ASSERT(range.first == range.second);
822}
823
824void THashTest::TestSizeOf() {
825 /* This test checks that we don't waste memory when all functors passed to

Callers

nothing calls this directly

Calls 4

beginMethod · 0.45
endMethod · 0.45
findMethod · 0.45
equal_rangeMethod · 0.45

Tested by

no test coverage detected