| 41 | } // anonymous namespace |
| 42 | |
| 43 | arrow::Status validateNonEmptyContainer(const int32_t num_fields) { |
| 44 | if (num_fields == 0) { |
| 45 | const auto msg = makeEmptyContainerErrorMessage(); |
| 46 | return arrow::Status::Invalid(std::move(msg)); |
| 47 | } |
| 48 | return arrow::Status::OK(); |
| 49 | } |
| 50 | |
| 51 | arrow::Status validateInRange(const int32_t matlab_index, const int32_t num_fields) { |
| 52 | if (matlab_index < 1 || matlab_index > num_fields) { |
no test coverage detected