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

Method Has

common/values/value_builder.cc:1232–1236  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1230 }
1231
1232 absl::StatusOr<bool> Has(const CelValue& key) const override {
1233 // This check safeguards against issues with invalid key types such as NaN.
1234 CEL_RETURN_IF_ERROR(CelValue::CheckMapKeyType(key));
1235 return map_.find(key) != map_.end();
1236 }
1237
1238 int size() const override { return static_cast<int>(Size()); }
1239

Callers

nothing calls this directly

Calls 3

CheckMapKeyTypeFunction · 0.85
CheckMapKeyFunction · 0.85
endMethod · 0.45

Tested by

no test coverage detected