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

Function ValidateFunctionSummary

cpp/src/arrow/compute/function.cc:360–368  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

358namespace {
359
360Status ValidateFunctionSummary(const std::string& s) {
361 if (s.find('\n') != s.npos) {
362 return Status::Invalid("summary contains a newline");
363 }
364 if (s.back() == '.') {
365 return Status::Invalid("summary ends with a point");
366 }
367 return Status::OK();
368}
369
370Status ValidateFunctionDescription(const std::string& s) {
371 if (!s.empty() && s.back() == '\n') {

Callers 1

ValidateMethod · 0.85

Calls 4

backMethod · 0.80
InvalidFunction · 0.50
OKFunction · 0.50
findMethod · 0.45

Tested by

no test coverage detected