MCPcopy Create free account
hub / github.com/cel-expr/cel-cpp / IsUnknownFunctionResult

Function IsUnknownFunctionResult

eval/public/cel_value.cc:400–410  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

398}
399
400bool IsUnknownFunctionResult(const CelValue& value) {
401 const CelError* error;
402 if (!value.GetValue(&error)) return false;
403
404 if (error == nullptr || error->code() != absl::StatusCode::kUnavailable) {
405 return false;
406 }
407 auto payload = error->GetPayload(
408 cel::runtime_internal::kPayloadUrlUnknownFunctionResult);
409 return payload.has_value() && payload.value() == "true";
410}
411
412} // namespace google::api::expr::runtime

Callers 1

TESTFunction · 0.85

Calls 4

codeMethod · 0.80
GetValueMethod · 0.45
has_valueMethod · 0.45
valueMethod · 0.45

Tested by 1

TESTFunction · 0.68