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

Method GenerateData

cpp/src/gandiva/tests/generate_data.h:104–112  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

102 explicit FastUtf8DataGenerator(int max_len) : max_len_(max_len), cur_char_('a') {}
103
104 std::string GenerateData() {
105 std::string generated_str;
106
107 int slen = random_.next() % max_len_;
108 for (int i = 0; i < slen; ++i) {
109 generated_str += generate_next_char();
110 }
111 return generated_str;
112 }
113
114 private:
115 char generate_next_char() {

Callers

nothing calls this directly

Calls 1

nextMethod · 0.45

Tested by

no test coverage detected