| 43 | "cumulative_mean"}; |
| 44 | |
| 45 | TEST(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 | |
| 61 | TEST(TestCumulative, AllNulls) { |
| 62 | for (auto function : kCumulativeFunctionNames) { |
nothing calls this directly
no test coverage detected