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

Method AssertIndexIs

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

Source from the content-addressed store, hash-verified

2650 public:
2651 using ScalarType = typename TypeTraits<ArrowType>::ScalarType;
2652 void AssertIndexIs(const std::string& json, const std::shared_ptr<ScalarType>& value,
2653 int64_t expected) {
2654 SCOPED_TRACE("Value: " + value->ToString());
2655 SCOPED_TRACE("Input: " + json);
2656 auto array = ArrayFromJSON(type_singleton(), json);
2657 CheckIndex(array, value, expected);
2658 }
2659
2660 void AssertIndexIs(const std::vector<std::string>& json,
2661 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