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

Method AssertIndexIs

cpp/src/arrow/compute/kernels/aggregate_test.cc:2612–2618  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2610 public:
2611 using ScalarType = typename TypeTraits<ArrowType>::ScalarType;
2612 void AssertIndexIs(const std::string& json, const std::shared_ptr<ScalarType>& value,
2613 int64_t expected) {
2614 SCOPED_TRACE("Value: " + value->ToString());
2615 SCOPED_TRACE("Input: " + json);
2616 auto array = ArrayFromJSON(type_singleton(), json);
2617 CheckIndex(array, value, expected);
2618 }
2619
2620 void AssertIndexIs(const std::vector<std::string>& json,
2621 const std::shared_ptr<ScalarType>& value, int64_t expected) {

Callers 1

TYPED_TESTFunction · 0.80

Calls 5

ArrayFromJSONFunction · 0.85
CheckIndexFunction · 0.85
ChunkedArrayFromJSONFunction · 0.85
type_singletonFunction · 0.70
ToStringMethod · 0.45

Tested by

no test coverage detected