Home
last modified time | relevance | path

Searched refs:MAX_FILE_LENGTH (Results 1 - 4 of 4) sorted by relevance

/commonlibrary/c_utils/base/test/unittest/rust/
H A Drust_utils_file_test.rs27 pub const MAX_FILE_LENGTH: usize = 32 * 1024 * 1024; consts
100 let content: String = "t".repeat(MAX_FILE_LENGTH); in test_load_string_from_file_005()
111 let content: String = "t".repeat(MAX_FILE_LENGTH + 1); in test_load_string_from_file_006()
155 let content: String = "t".repeat(MAX_FILE_LENGTH); in test_load_string_from_fd_004()
168 let content: String = "t".repeat(MAX_FILE_LENGTH + 1); in test_load_string_from_fd_005()
380 let content = "t".repeat(MAX_FILE_LENGTH + 1); in test_load_buffer_from_file_004()
468 let str_value1 = "t".repeat(MAX_FILE_LENGTH + 1); in test_string_exists_in_file_004()
469 let str_value2 = "t".repeat(MAX_FILE_LENGTH); in test_string_exists_in_file_004()
471 let content = "t".repeat(MAX_FILE_LENGTH); in test_string_exists_in_file_004()
564 let str1 = "t".repeat(MAX_FILE_LENGTH in test_count_str_in_file_003()
[all...]
/commonlibrary/c_utils/base/test/benchmarktest/file_benchmark_test/
H A Dfile_benchmark_test.cpp35 static constexpr int MAX_FILE_LENGTH = 1 * 1024 * 1024; member
202 string content(MAX_FILE_LENGTH, 't'); in BENCHMARK_F()
284 string content(MAX_FILE_LENGTH, 't'); in BENCHMARK_F()
758 string str1(MAX_FILE_LENGTH + 1, 't'); in BENCHMARK_F()
759 string str2(MAX_FILE_LENGTH, 't'); in BENCHMARK_F()
760 string content(MAX_FILE_LENGTH, 't'); in BENCHMARK_F()
925 string str1(MAX_FILE_LENGTH + 1, 't'); in BENCHMARK_F()
926 string str2(MAX_FILE_LENGTH, 't'); in BENCHMARK_F()
927 string content(MAX_FILE_LENGTH, 't'); in BENCHMARK_F()
/commonlibrary/c_utils/base/src/
H A Dfile_ex.cpp32 const int MAX_FILE_LENGTH = 32 * 1024 * 1024; variable
120 if (fileLength > MAX_FILE_LENGTH) { in LoadStringFromFile()
172 if (fileLength > MAX_FILE_LENGTH) { in LoadStringFromFd()
275 if (byteCount > MAX_FILE_LENGTH) { in LoadBufferFromNodeFile()
305 if (fileLength > MAX_FILE_LENGTH) { in LoadBufferFromFile()
/commonlibrary/c_utils/base/test/unittest/common/
H A Dutils_file_test.cpp36 static constexpr int MAX_FILE_LENGTH = 32 * 1024 * 1024; member in OHOS::__anon34::UtilsFileTest
148 string content(MAX_FILE_LENGTH, 't'); in HWTEST_F()
163 string content(MAX_FILE_LENGTH + 1, 't'); in HWTEST_F()
223 string content(MAX_FILE_LENGTH, 't'); in HWTEST_F()
240 string content(MAX_FILE_LENGTH + 1, 't'); in HWTEST_F()

Completed in 9 milliseconds