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

Function CheckInRangeFails

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

Source from the content-addressed store, hash-verified

496}
497
498void CheckInRangeFails(const std::shared_ptr<DataType>& type,
499 const std::string& values_json, const std::string& limits_json) {
500 auto values = ArrayFromJSON(type, values_json);
501 auto limits = ArrayFromJSON(type, limits_json);
502 ASSERT_RAISES(Invalid, CheckIntegersInRange(*values->data(), **limits->GetScalar(0),
503 **limits->GetScalar(1)));
504}
505
506TEST(CheckIntegersInRange, Batching) {
507 auto rand = random::RandomArrayGenerator(/*seed=*/0);

Callers 1

TESTFunction · 0.85

Calls 4

ArrayFromJSONFunction · 0.85
CheckIntegersInRangeFunction · 0.85
dataMethod · 0.45
GetScalarMethod · 0.45

Tested by

no test coverage detected