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

Function EqualOverloadImpl

runtime/standard/equality_functions.cc:490–503  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

488}
489
490absl::StatusOr<Value> EqualOverloadImpl(
491 const Value& lhs, const Value& rhs,
492 const google::protobuf::DescriptorPool* absl_nonnull descriptor_pool,
493 google::protobuf::MessageFactory* absl_nonnull message_factory,
494 google::protobuf::Arena* absl_nonnull arena) {
495 CEL_ASSIGN_OR_RETURN(absl::optional<bool> result,
496 runtime_internal::ValueEqualImpl(
497 lhs, rhs, descriptor_pool, message_factory, arena));
498 if (result.has_value()) {
499 return BoolValue(*result);
500 }
501 return ErrorValue(
502 cel::runtime_internal::CreateNoMatchingOverloadError(kEqual));
503}
504
505absl::StatusOr<Value> InequalOverloadImpl(
506 const Value& lhs, const Value& rhs,

Callers

nothing calls this directly

Calls 4

ErrorValueFunction · 0.85
BoolValueClass · 0.50
has_valueMethod · 0.45

Tested by

no test coverage detected