Verifies that each row of the single-byte-wide column is one of the possibilities.
| 292 | |
| 293 | // Verifies that each row of the single-byte-wide column is one of the possibilities. |
| 294 | void VerifyOneOf(const Datum& d, const std::unordered_set<char>& possibilities) { |
| 295 | int64_t length = d.length(); |
| 296 | const char* col = reinterpret_cast<const char*>(d.array()->buffers[1]->data()); |
| 297 | for (int64_t i = 0; i < length; i++) |
| 298 | ASSERT_TRUE(possibilities.find(col[i]) != possibilities.end()); |
| 299 | } |
| 300 | |
| 301 | // Verifies that each fixed-width row is one of the possibilities |
| 302 | void VerifyOneOf(const Datum& d, int32_t byte_width, |
no test coverage detected