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

Function CountTests

library/cpp/testing/unittest/registar.cpp:161–171  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

159}
160
161static size_t CountTests(const TMap<TString, size_t>& testErrors, bool succeeded) {
162 size_t cnt = 0;
163 for (const auto& t : testErrors) {
164 if (succeeded && t.second == 0) {
165 ++cnt;
166 } else if (!succeeded && t.second > 0) {
167 ++cnt;
168 }
169 }
170 return cnt;
171}
172
173NUnitTest::ITestSuiteProcessor::ITestSuiteProcessor() = default;
174

Callers 4

GoodTestsMethod · 0.85
FailTestsMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected