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

Function Y_UNIT_TEST

util/generic/array_ref_ut.cpp:6–10  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4
5Y_UNIT_TEST_SUITE(TestArrayRef) {
6 Y_UNIT_TEST(TestDefaultConstructor) {
7 TArrayRef<int> defaulted;
8 UNIT_ASSERT_VALUES_EQUAL(defaulted.data(), nullptr);
9 UNIT_ASSERT_VALUES_EQUAL(defaulted.size(), 0u);
10 }
11
12 Y_UNIT_TEST(TestConstructorFromArray) {
13 int x[] = {10, 20, 30};

Callers

nothing calls this directly

Calls 15

MakeArrayRefFunction · 0.85
as_bytesFunction · 0.85
as_writable_bytesFunction · 0.85
DoFunction · 0.85
MakeConstArrayRefFunction · 0.85
subspanMethod · 0.80
SubRegionMethod · 0.80
FooFunction · 0.70
dataMethod · 0.45
sizeMethod · 0.45
atMethod · 0.45
frontMethod · 0.45

Tested by

no test coverage detected