Lines Matching refs:countNewLines
27 static size_t countNewLines(const std::string &s) { in countNewLines() function
35 EXPECT_EQ((size_t)1, countNewLines(elog->dumpToString())); in TEST()
41 EXPECT_EQ((size_t)4, countNewLines(elog->dumpToString())); in TEST()
45 EXPECT_EQ((size_t)4, countNewLines(elog->dumpToString())); in TEST()
49 EXPECT_EQ((size_t)5, countNewLines(elog->dumpToString())); in TEST()
53 EXPECT_EQ((size_t)3, countNewLines(elog->dumpToString("" /* prefix */, 3 /* lines */))); in TEST()
56 EXPECT_EQ((size_t)4, countNewLines( in TEST()
60 EXPECT_EQ((size_t)4, countNewLines( in TEST()
64 EXPECT_EQ((size_t)3, countNewLines( in TEST()
68 EXPECT_EQ((size_t)3, countNewLines( in TEST()
72 EXPECT_EQ((size_t)1, countNewLines( in TEST()