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

Function validateNonEmptyContainer

matlab/src/cpp/arrow/matlab/index/validate.cc:43–49  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

41} // anonymous namespace
42
43arrow::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
51arrow::Status validateInRange(const int32_t matlab_index, const int32_t num_fields) {
52 if (matlab_index < 1 || matlab_index > num_fields) {

Callers 3

getFieldByIndexMethod · 0.85
getFieldByIndexMethod · 0.85
getFieldByIndexMethod · 0.85

Calls 3

InvalidFunction · 0.50
OKFunction · 0.50

Tested by

no test coverage detected