| 396 | } |
| 397 | |
| 398 | void BoundsCheckFails(const std::shared_ptr<DataType>& type, |
| 399 | const std::string& indices_json, uint64_t upper_limit) { |
| 400 | auto indices = ArrayFromJSON(type, indices_json); |
| 401 | ASSERT_RAISES(IndexError, CheckIndexBounds(*indices->data(), upper_limit)); |
| 402 | } |
| 403 | |
| 404 | TEST(CheckIndexBounds, Batching) { |
| 405 | auto rand = random::RandomArrayGenerator(/*seed=*/0); |
no test coverage detected