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

Function InequalOverloadImpl

runtime/standard/equality_functions.cc:505–518  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

503}
504
505absl::StatusOr<Value> InequalOverloadImpl(
506 const Value& lhs, const Value& rhs,
507 const google::protobuf::DescriptorPool* absl_nonnull descriptor_pool,
508 google::protobuf::MessageFactory* absl_nonnull message_factory,
509 google::protobuf::Arena* absl_nonnull arena) {
510 CEL_ASSIGN_OR_RETURN(absl::optional<bool> result,
511 runtime_internal::ValueEqualImpl(
512 lhs, rhs, descriptor_pool, message_factory, arena));
513 if (result.has_value()) {
514 return BoolValue(!*result);
515 }
516 return ErrorValue(
517 cel::runtime_internal::CreateNoMatchingOverloadError(kInequal));
518}
519
520absl::Status RegisterHeterogeneousEqualityFunctions(
521 cel::FunctionRegistry& registry) {

Callers

nothing calls this directly

Calls 4

ErrorValueFunction · 0.85
BoolValueClass · 0.50
has_valueMethod · 0.45

Tested by

no test coverage detected