MCPcopy Create free account
hub / github.com/apache/arrow / BoundsCheckFails

Function BoundsCheckFails

cpp/src/arrow/util/int_util_test.cc:398–402  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

396}
397
398void 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
404TEST(CheckIndexBounds, Batching) {
405 auto rand = random::RandomArrayGenerator(/*seed=*/0);

Callers 1

TESTFunction · 0.85

Calls 3

ArrayFromJSONFunction · 0.85
CheckIndexBoundsFunction · 0.85
dataMethod · 0.45

Tested by

no test coverage detected