| 219 | } |
| 220 | |
| 221 | bool FunctionRegistry::DescriptorRegistered( |
| 222 | const cel::FunctionDescriptor& descriptor) const { |
| 223 | auto overloads = functions_.find(descriptor.name()); |
| 224 | if (overloads == functions_.end()) { |
| 225 | return false; |
| 226 | } |
| 227 | const RegistryEntry& entry = overloads->second; |
| 228 | for (const auto& static_ovl : entry.static_overloads) { |
| 229 | if (static_ovl.descriptor->ShapeMatches(descriptor)) { |
| 230 | return true; |
| 231 | } |
| 232 | } |
| 233 | for (const auto& lazy_ovl : entry.lazy_overloads) { |
| 234 | if (lazy_ovl.descriptor->ShapeMatches(descriptor)) { |
| 235 | return true; |
| 236 | } |
| 237 | } |
| 238 | return false; |
| 239 | } |
| 240 | |
| 241 | bool FunctionRegistry::ValidateNonStrictOverload( |
| 242 | const cel::FunctionDescriptor& descriptor) const { |
nothing calls this directly
no test coverage detected