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

Function TEST

library/cpp/iterator/ut/filtering_ut.cpp:9–19  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7using namespace testing;
8
9TEST(Filtering, TFilteringRangeTest) {
10 const TVector<int> x = {1, 2, 3, 4, 5};
11
12 EXPECT_THAT(
13 MakeFilteringRange(
14 x,
15 [](int x) { return x % 2 == 0; }
16 ),
17 ElementsAre(2, 4)
18 );
19}
20
21TEST(Filtering, TEmptyFilteringRangeTest) {
22 TVector<int> x = {1, 2, 3, 4, 5};

Callers

nothing calls this directly

Calls 2

MakeFilteringRangeFunction · 0.85
ElementsAreFunction · 0.85

Tested by

no test coverage detected