Determine if the overload should be considered. Overloads that can consume errors or unknown sets must be allowed as a non-strict function.
| 47 | // Determine if the overload should be considered. Overloads that can consume |
| 48 | // errors or unknown sets must be allowed as a non-strict function. |
| 49 | bool ShouldAcceptOverload(const cel::FunctionDescriptor& descriptor, |
| 50 | absl::Span<const cel::Value> arguments) { |
| 51 | for (size_t i = 0; i < arguments.size(); i++) { |
| 52 | if (arguments[i]->Is<cel::UnknownValue>() || |
| 53 | arguments[i]->Is<cel::ErrorValue>()) { |
| 54 | return !descriptor.is_strict(); |
| 55 | } |
| 56 | } |
| 57 | return true; |
| 58 | } |
| 59 | |
| 60 | bool ArgumentKindsMatch(const cel::FunctionDescriptor& descriptor, |
| 61 | absl::Span<const cel::Value> arguments) { |
no test coverage detected