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

Method Has

common/values/value_builder.cc:1068–1072  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1066 }
1067
1068 absl::StatusOr<bool> Has(const CelValue& key) const override {
1069 // This check safeguards against issues with invalid key types such as NaN.
1070 CEL_RETURN_IF_ERROR(CelValue::CheckMapKeyType(key));
1071 return map_.find(key) != map_.end();
1072 }
1073
1074 int size() const override { return static_cast<int>(Size()); }
1075

Callers

nothing calls this directly

Calls 3

CheckMapKeyTypeFunction · 0.85
CheckMapKeyFunction · 0.85
endMethod · 0.45

Tested by

no test coverage detected