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

Function TEST

cpp/src/arrow/compute/kernels/vector_cumulative_ops_test.cc:45–59  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

43 "cumulative_mean"};
44
45TEST(TestCumulative, Empty) {
46 for (auto function : kCumulativeFunctionNames) {
47 CumulativeOptions options;
48 for (auto ty : NumericTypes()) {
49 auto return_ty = std::string(function) == "cumulative_mean" ? float64() : ty;
50 auto empty_arr = ArrayFromJSON(ty, "[]");
51 auto expected_arr = ArrayFromJSON(return_ty, "[]");
52 auto empty_chunked = ChunkedArrayFromJSON(ty, {"[]"});
53 auto expected_chunked = ChunkedArrayFromJSON(return_ty, {"[]"});
54 CheckVectorUnary(function, empty_arr, expected_arr, &options);
55
56 CheckVectorUnary(function, empty_chunked, expected_chunked, &options);
57 }
58 }
59}
60
61TEST(TestCumulative, AllNulls) {
62 for (auto function : kCumulativeFunctionNames) {

Callers

nothing calls this directly

Calls 11

ArrayFromJSONFunction · 0.85
ChunkedArrayFromJSONFunction · 0.85
CheckVectorUnaryFunction · 0.85
ScalarFromJSONFunction · 0.85
CumulativeSumFunction · 0.85
CumulativeProdFunction · 0.85
CumulativeMaxFunction · 0.85
CumulativeMinFunction · 0.85
make_arrayMethod · 0.80
CumulativeMeanClass · 0.70
DefaultsFunction · 0.50

Tested by

no test coverage detected