| 50 | |
| 51 | public: |
| 52 | static REETestData JSON(std::shared_ptr<DataType> data_type, std::string input_json, |
| 53 | std::string expected_values_json, |
| 54 | std::string expected_run_ends_json, int64_t input_offset = 0) { |
| 55 | auto input_array = ArrayFromJSON(data_type, input_json); |
| 56 | return SingleArray(input_offset ? input_array->Slice(input_offset) : input_array, |
| 57 | ArrayFromJSON(data_type, expected_values_json), |
| 58 | std::move(expected_run_ends_json), std::move(input_json)); |
| 59 | } |
| 60 | |
| 61 | static REETestData NullArray(int64_t input_length, int64_t input_offset = 0) { |
| 62 | auto input_array = std::make_shared<arrow::NullArray>(input_length); |
nothing calls this directly
no test coverage detected