| 33 | static constexpr random::SeedType kLongLength = 16384; |
| 34 | |
| 35 | static std::shared_ptr<Array> MakeReplacements(random::RandomArrayGenerator* generator, |
| 36 | const BooleanArray& mask) { |
| 37 | int64_t count = 0; |
| 38 | for (int64_t i = 0; i < mask.length(); i++) { |
| 39 | count += mask.Value(i) && mask.IsValid(i); |
| 40 | } |
| 41 | return generator->Int64(count, /*min=*/-65536, /*max=*/65536, /*null_probability=*/0.1); |
| 42 | } |
| 43 | |
| 44 | static void ReplaceWithMaskLowSelectivityBench( |
| 45 | benchmark::State& state) { // NOLINT non-const reference |
no test coverage detected