@@ -238,7 +238,7 @@ class TestProcessExecutor : public TestFixture {
238238 true , SHOWTIME_MODES::SHOWTIME_TOP5_FILE);
239239 const std::string output_s = GET_REDIRECT_OUTPUT;
240240 // for each file: top5 results + overall + empty line
241- TODO_ASSERT_EQUALS ((5 + 1 + 1 ) * 2 , 0 , cppcheck::find_all_of (output_s, ' \n ' ));
241+ TODO_ASSERT_EQUALS ((5 + 1 + 1 ) * 2 , 0 , cppcheck::count_all_of (output_s, ' \n ' ));
242242 }
243243
244244 void showtime_top5_summary () {
@@ -248,7 +248,7 @@ class TestProcessExecutor : public TestFixture {
248248 true , SHOWTIME_MODES::SHOWTIME_TOP5_SUMMARY);
249249 const std::string output_s = GET_REDIRECT_OUTPUT;
250250 // once: top5 results + overall + empty line
251- TODO_ASSERT_EQUALS (5 + 1 + 1 , 0 , cppcheck::find_all_of (output_s, ' \n ' ));
251+ TODO_ASSERT_EQUALS (5 + 1 + 1 , 0 , cppcheck::count_all_of (output_s, ' \n ' ));
252252 // should only report the top5 once
253253 ASSERT (output_s.find (" 1 result(s)" ) == std::string::npos);
254254 TODO_ASSERT (output_s.find (" 2 result(s)" ) != std::string::npos);
@@ -260,7 +260,7 @@ class TestProcessExecutor : public TestFixture {
260260 " int main() {}" ,
261261 true , SHOWTIME_MODES::SHOWTIME_FILE);
262262 const std::string output_s = GET_REDIRECT_OUTPUT;
263- TODO_ASSERT_EQUALS (2 , 0 , cppcheck::find_all_of (output_s, " Overall time:" ));
263+ TODO_ASSERT_EQUALS (2 , 0 , cppcheck::count_all_of (output_s, " Overall time:" ));
264264 }
265265
266266 void showtime_summary () {
@@ -281,7 +281,7 @@ class TestProcessExecutor : public TestFixture {
281281 true , SHOWTIME_MODES::SHOWTIME_TOP5_FILE);
282282 const std::string output_s = GET_REDIRECT_OUTPUT;
283283 // for each file: top5 results + overall + empty line
284- TODO_ASSERT_EQUALS ((5 + 1 + 1 ) * 2 , 0 , cppcheck::find_all_of (output_s, ' \n ' ));
284+ TODO_ASSERT_EQUALS ((5 + 1 + 1 ) * 2 , 0 , cppcheck::count_all_of (output_s, ' \n ' ));
285285 }
286286
287287 void showtime_top5_summary_j () {
@@ -291,7 +291,7 @@ class TestProcessExecutor : public TestFixture {
291291 true , SHOWTIME_MODES::SHOWTIME_TOP5_SUMMARY);
292292 const std::string output_s = GET_REDIRECT_OUTPUT;
293293 // once: top5 results + overall + empty line
294- TODO_ASSERT_EQUALS (5 + 1 + 1 , 0 , cppcheck::find_all_of (output_s, ' \n ' ));
294+ TODO_ASSERT_EQUALS (5 + 1 + 1 , 0 , cppcheck::count_all_of (output_s, ' \n ' ));
295295 // should only report the top5 once
296296 ASSERT (output_s.find (" 1 result(s)" ) == std::string::npos);
297297 TODO_ASSERT (output_s.find (" 2 result(s)" ) != std::string::npos);
@@ -303,7 +303,7 @@ class TestProcessExecutor : public TestFixture {
303303 " int main() {}" ,
304304 true , SHOWTIME_MODES::SHOWTIME_FILE);
305305 const std::string output_s = GET_REDIRECT_OUTPUT;
306- TODO_ASSERT_EQUALS (2 , 0 , cppcheck::find_all_of (output_s, " Overall time:" ));
306+ TODO_ASSERT_EQUALS (2 , 0 , cppcheck::count_all_of (output_s, " Overall time:" ));
307307 }
308308
309309 void showtime_summary_j () {
0 commit comments