| 230 | } |
| 231 | |
| 232 | static std::string rand_string(int min_len, int max_len) { |
| 233 | const int len = butil::fast_rand_in(min_len, max_len); |
| 234 | std::string str; |
| 235 | str.reserve(len); |
| 236 | for (int i = 0; i < len; ++i) { |
| 237 | str.push_back(butil::fast_rand_in('a', 'Z')); |
| 238 | } |
| 239 | return str; |
| 240 | } |
| 241 | |
| 242 | TEST(RecordIOTest, write_read_random) { |
| 243 | StringWriter sw; |
no test coverage detected