@@ -253,7 +253,7 @@ class TestProcessExecutor : public TestFixture {
253253 true , SHOWTIME_MODES ::SHOWTIME_TOP5_FILE );
254254 const std::string output_s = GET_REDIRECT_OUTPUT ;
255255 // for each file: top5 results + overall + empty line
256- TODO_ASSERT_EQUALS ((5 + 1 + 1 ) * 2 , 0 , cppcheck::find_all_of (output_s, ' \n ' ));
256+ TODO_ASSERT_EQUALS ((5 + 1 + 1 ) * 2 , 0 , cppcheck::count_all_of (output_s, ' \n ' ));
257257 }
258258
259259 void showtime_top5_summary () {
@@ -263,7 +263,7 @@ class TestProcessExecutor : public TestFixture {
263263 true , SHOWTIME_MODES ::SHOWTIME_TOP5_SUMMARY );
264264 const std::string output_s = GET_REDIRECT_OUTPUT ;
265265 // once: top5 results + overall + empty line
266- TODO_ASSERT_EQUALS (5 + 1 + 1 , 0 , cppcheck::find_all_of (output_s, ' \n ' ));
266+ TODO_ASSERT_EQUALS (5 + 1 + 1 , 0 , cppcheck::count_all_of (output_s, ' \n ' ));
267267 // should only report the top5 once
268268 ASSERT (output_s.find (" 1 result(s)" ) == std::string::npos);
269269 TODO_ASSERT (output_s.find (" 2 result(s)" ) != std::string::npos);
@@ -275,7 +275,7 @@ class TestProcessExecutor : public TestFixture {
275275 " int main() {}" ,
276276 true , SHOWTIME_MODES ::SHOWTIME_FILE );
277277 const std::string output_s = GET_REDIRECT_OUTPUT ;
278- TODO_ASSERT_EQUALS (2 , 0 , cppcheck::find_all_of (output_s, " Overall time:" ));
278+ TODO_ASSERT_EQUALS (2 , 0 , cppcheck::count_all_of (output_s, " Overall time:" ));
279279 }
280280
281281 void showtime_summary () {
@@ -296,7 +296,7 @@ class TestProcessExecutor : public TestFixture {
296296 true , SHOWTIME_MODES ::SHOWTIME_TOP5_FILE );
297297 const std::string output_s = GET_REDIRECT_OUTPUT ;
298298 // for each file: top5 results + overall + empty line
299- TODO_ASSERT_EQUALS ((5 + 1 + 1 ) * 2 , 0 , cppcheck::find_all_of (output_s, ' \n ' ));
299+ TODO_ASSERT_EQUALS ((5 + 1 + 1 ) * 2 , 0 , cppcheck::count_all_of (output_s, ' \n ' ));
300300 }
301301
302302 void showtime_top5_summary_j () {
@@ -306,7 +306,7 @@ class TestProcessExecutor : public TestFixture {
306306 true , SHOWTIME_MODES ::SHOWTIME_TOP5_SUMMARY );
307307 const std::string output_s = GET_REDIRECT_OUTPUT ;
308308 // once: top5 results + overall + empty line
309- TODO_ASSERT_EQUALS (5 + 1 + 1 , 0 , cppcheck::find_all_of (output_s, ' \n ' ));
309+ TODO_ASSERT_EQUALS (5 + 1 + 1 , 0 , cppcheck::count_all_of (output_s, ' \n ' ));
310310 // should only report the top5 once
311311 ASSERT (output_s.find (" 1 result(s)" ) == std::string::npos);
312312 TODO_ASSERT (output_s.find (" 2 result(s)" ) != std::string::npos);
@@ -318,7 +318,7 @@ class TestProcessExecutor : public TestFixture {
318318 " int main() {}" ,
319319 true , SHOWTIME_MODES ::SHOWTIME_FILE );
320320 const std::string output_s = GET_REDIRECT_OUTPUT ;
321- TODO_ASSERT_EQUALS (2 , 0 , cppcheck::find_all_of (output_s, " Overall time:" ));
321+ TODO_ASSERT_EQUALS (2 , 0 , cppcheck::count_all_of (output_s, " Overall time:" ));
322322 }
323323
324324 void showtime_summary_j () {
0 commit comments