| 227 | |
| 228 | template <typename Type> |
| 229 | void 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 | |
| 251 | TEST(VectorHash, BasicBinary) { RunTestVectorHash<BinaryType>(); } |
| 252 |
nothing calls this directly
no outgoing calls
no test coverage detected