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

Method GenerateUtf8

cpp/src/arrow/json/test_common.h:116–122  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

114 }
115
116 Status GenerateUtf8(const DataType&) {
117 auto num_codepoints = std::poisson_distribution<>{4}(e);
118 auto seed = std::uniform_int_distribution<uint32_t>{}(e);
119 std::string s = RandomUtf8String(seed, num_codepoints);
120 writer.String(s);
121 return Status::OK();
122 }
123
124 template <typename T>
125 enable_if_base_binary<T, Status> Visit(const T& t) {

Callers

nothing calls this directly

Calls 3

RandomUtf8StringFunction · 0.85
OKFunction · 0.70
StringMethod · 0.45

Tested by

no test coverage detected