Verifies that each element is seen exactly once, and that it's between min and max inclusive
| 85 | // Verifies that each element is seen exactly once, and that it's between min and max |
| 86 | // inclusive |
| 87 | void VerifyUniqueKey(std::unordered_set<int32_t>* seen, const Datum& d, int32_t min, |
| 88 | int32_t max) { |
| 89 | const int32_t* keys = reinterpret_cast<const int32_t*>(d.array()->buffers[1]->data()); |
| 90 | int64_t num_keys = d.length(); |
| 91 | for (int64_t i = 0; i < num_keys; i++) { |
| 92 | ASSERT_TRUE(seen->insert(keys[i]).second); |
| 93 | ASSERT_LE(keys[i], max); |
| 94 | ASSERT_GE(keys[i], min); |
| 95 | } |
| 96 | } |
| 97 | |
| 98 | void VerifyStringAndNumber_Single(std::string_view row, std::string_view prefix, |
| 99 | const int64_t i, const int32_t* nums, |
no test coverage detected