Searched refs:CountStrInFile (Results 1 - 4 of 4) sorted by relevance
/commonlibrary/c_utils/base/test/unittest/common/ |
H A D | utils_file_test.cpp | 719 EXPECT_EQ(CountStrInFile(filename, str, true), -1); in HWTEST_F() 733 EXPECT_EQ(CountStrInFile(filename, str, true), -1); in HWTEST_F() 748 EXPECT_EQ(CountStrInFile(filename, str1, true), 0); in HWTEST_F() 749 EXPECT_EQ(CountStrInFile(filename, str2, true), 1); in HWTEST_F() 765 EXPECT_EQ(CountStrInFile(filename, str1, true), 2); in HWTEST_F() 766 EXPECT_EQ(CountStrInFile(filename, str1, false), 4); in HWTEST_F() 768 EXPECT_EQ(CountStrInFile(filename, str2, true), 1); in HWTEST_F() 769 EXPECT_EQ(CountStrInFile(filename, str2, false), 4); in HWTEST_F() 771 EXPECT_EQ(CountStrInFile(filename, str3, true), 0); in HWTEST_F() 785 EXPECT_EQ(CountStrInFile(filenam in HWTEST_F() [all...] |
/commonlibrary/c_utils/base/test/benchmarktest/file_benchmark_test/ |
H A D | file_benchmark_test.cpp | 892 AssertEqual(CountStrInFile(filename, str, true), -1, in BENCHMARK_F() 893 "CountStrInFile(filename, str, true) did not equal -1 as expected.", state); in BENCHMARK_F() 911 AssertEqual(CountStrInFile(filename, str, true), -1, in BENCHMARK_F() 912 "CountStrInFile(filename, str, true) did not equal -1 as expected.", state); in BENCHMARK_F() 931 AssertEqual(CountStrInFile(filename, str1, true), 0, in BENCHMARK_F() 932 "CountStrInFile(filename, str1, true) did not equal 0 as expected.", state); in BENCHMARK_F() 933 AssertEqual(CountStrInFile(filename, str2, true), 1, in BENCHMARK_F() 934 "CountStrInFile(filename, str2, true) did not equal 1 as expected.", state); in BENCHMARK_F() 954 AssertEqual(CountStrInFile(filename, str1, true), 2, in BENCHMARK_F() 955 "CountStrInFile(filenam in BENCHMARK_F() [all...] |
/commonlibrary/c_utils/base/include/ |
H A D | file_ex.h | 154 int CountStrInFile(const std::string& fileName, const std::string& subStr, bool caseSensitive = true);
|
/commonlibrary/c_utils/base/src/ |
H A D | file_ex.cpp | 105 return CountStrInFile(tmpName, tmpStr, caseSensitive); in RustCountStrInFile() 399 int CountStrInFile(const string& fileName, const string& subStr, bool caseSensitive /*= true*/) in CountStrInFile() function
|
Completed in 4 milliseconds