MCPcopy Create free account
hub / github.com/apache/arrow / RandomLine

Method RandomLine

cpp/src/arrow/filesystem/gcsfs_test.cc:198–203  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

196 }
197
198 std::string RandomLine(int lineno, std::size_t width) {
199 auto line = std::to_string(lineno) + ": ";
200 line += RandomChars(width - line.size() - 1);
201 line += '\n';
202 return line;
203 }
204
205 std::size_t RandomIndex(std::size_t end) {
206 return std::uniform_int_distribution<std::size_t>(0, end - 1)(generator_);

Callers

nothing calls this directly

Calls 2

to_stringFunction · 0.85
sizeMethod · 0.45

Tested by

no test coverage detected