@@ -242,7 +242,7 @@ class TestProcessExecutor : public TestFixture {
242242 true , SHOWTIME_MODES::SHOWTIME_TOP5_FILE);
243243 const std::string output_s = GET_REDIRECT_OUTPUT;
244244 // for each file: top5 results + overall + empty line
245- TODO_ASSERT_EQUALS ((5 + 1 + 1 ) * 2 , 0 , cppcheck::find_all_of (output_s, ' \n ' ));
245+ TODO_ASSERT_EQUALS ((5 + 1 + 1 ) * 2 , 0 , cppcheck::count_all_of (output_s, ' \n ' ));
246246 }
247247
248248 void showtime_top5_summary () {
@@ -252,7 +252,7 @@ class TestProcessExecutor : public TestFixture {
252252 true , SHOWTIME_MODES::SHOWTIME_TOP5_SUMMARY);
253253 const std::string output_s = GET_REDIRECT_OUTPUT;
254254 // once: top5 results + overall + empty line
255- TODO_ASSERT_EQUALS (5 + 1 + 1 , 0 , cppcheck::find_all_of (output_s, ' \n ' ));
255+ TODO_ASSERT_EQUALS (5 + 1 + 1 , 0 , cppcheck::count_all_of (output_s, ' \n ' ));
256256 // should only report the top5 once
257257 ASSERT (output_s.find (" 1 result(s)" ) == std::string::npos);
258258 TODO_ASSERT (output_s.find (" 2 result(s)" ) != std::string::npos);
@@ -264,7 +264,7 @@ class TestProcessExecutor : public TestFixture {
264264 " int main() {}" ,
265265 true , SHOWTIME_MODES::SHOWTIME_FILE);
266266 const std::string output_s = GET_REDIRECT_OUTPUT;
267- TODO_ASSERT_EQUALS (2 , 0 , cppcheck::find_all_of (output_s, " Overall time:" ));
267+ TODO_ASSERT_EQUALS (2 , 0 , cppcheck::count_all_of (output_s, " Overall time:" ));
268268 }
269269
270270 void showtime_summary () {
@@ -285,7 +285,7 @@ class TestProcessExecutor : public TestFixture {
285285 true , SHOWTIME_MODES::SHOWTIME_TOP5_FILE);
286286 const std::string output_s = GET_REDIRECT_OUTPUT;
287287 // for each file: top5 results + overall + empty line
288- TODO_ASSERT_EQUALS ((5 + 1 + 1 ) * 2 , 0 , cppcheck::find_all_of (output_s, ' \n ' ));
288+ TODO_ASSERT_EQUALS ((5 + 1 + 1 ) * 2 , 0 , cppcheck::count_all_of (output_s, ' \n ' ));
289289 }
290290
291291 void showtime_top5_summary_j () {
@@ -295,7 +295,7 @@ class TestProcessExecutor : public TestFixture {
295295 true , SHOWTIME_MODES::SHOWTIME_TOP5_SUMMARY);
296296 const std::string output_s = GET_REDIRECT_OUTPUT;
297297 // once: top5 results + overall + empty line
298- TODO_ASSERT_EQUALS (5 + 1 + 1 , 0 , cppcheck::find_all_of (output_s, ' \n ' ));
298+ TODO_ASSERT_EQUALS (5 + 1 + 1 , 0 , cppcheck::count_all_of (output_s, ' \n ' ));
299299 // should only report the top5 once
300300 ASSERT (output_s.find (" 1 result(s)" ) == std::string::npos);
301301 TODO_ASSERT (output_s.find (" 2 result(s)" ) != std::string::npos);
@@ -307,7 +307,7 @@ class TestProcessExecutor : public TestFixture {
307307 " int main() {}" ,
308308 true , SHOWTIME_MODES::SHOWTIME_FILE);
309309 const std::string output_s = GET_REDIRECT_OUTPUT;
310- TODO_ASSERT_EQUALS (2 , 0 , cppcheck::find_all_of (output_s, " Overall time:" ));
310+ TODO_ASSERT_EQUALS (2 , 0 , cppcheck::count_all_of (output_s, " Overall time:" ));
311311 }
312312
313313 void showtime_summary_j () {
0 commit comments