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

Function RunTestVectorHash

cpp/src/arrow/compute/key_hash_test.cc:229–249  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

227
228template <typename Type>
229void RunTestVectorHash() {
230 random::pcg32_fast gen(/*seed=*/0);
231
232#ifdef ARROW_VALGRIND
233 constexpr int kNumTests = 5;
234#else
235 constexpr int kNumTests = 40;
236#endif
237
238 constexpr int min_length = 0;
239 constexpr int max_length = 50;
240
241 for (bool use_32bit_hash : {true, false}) {
242 for (bool use_varlen_input : {false, true}) {
243 for (int itest = 0; itest < kNumTests; ++itest) {
244 TestVectorHash::RunSingle<Type>(&gen, use_32bit_hash, use_varlen_input,
245 min_length, max_length);
246 }
247 }
248 }
249}
250
251TEST(VectorHash, BasicBinary) { RunTestVectorHash<BinaryType>(); }
252

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected