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

Function operator==

common/values/parsed_json_map_value.cc:426–437  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

424}
425
426bool operator==(const ParsedJsonMapValue& lhs, const ParsedJsonMapValue& rhs) {
427 if (cel::to_address(lhs.value_) == cel::to_address(rhs.value_)) {
428 return true;
429 }
430 if (cel::to_address(lhs.value_) == nullptr) {
431 return rhs.IsEmpty();
432 }
433 if (cel::to_address(rhs.value_) == nullptr) {
434 return lhs.IsEmpty();
435 }
436 return internal::JsonMapEquals(*lhs.value_, *rhs.value_);
437}
438
439} // namespace cel

Callers

nothing calls this directly

Calls 3

to_addressFunction · 0.85
JsonMapEqualsFunction · 0.85
IsEmptyMethod · 0.45

Tested by

no test coverage detected