| 226 | } |
| 227 | |
| 228 | absl::StatusOr<std::unique_ptr<ExpressionStep>> MakeTestFunctionStep( |
| 229 | const CallExpr& call, const CelFunctionRegistry& registry) { |
| 230 | auto argument_matcher = ArgumentMatcher(call); |
| 231 | auto lazy_overloads = registry.ModernFindLazyOverloads( |
| 232 | call.function(), call.has_target(), argument_matcher); |
| 233 | if (!lazy_overloads.empty()) { |
| 234 | return CreateFunctionStep(call, GetExprId(), lazy_overloads); |
| 235 | } |
| 236 | auto overloads = registry.FindStaticOverloads( |
| 237 | call.function(), call.has_target(), argument_matcher); |
| 238 | return CreateFunctionStep(call, GetExprId(), overloads); |
| 239 | } |
| 240 | |
| 241 | // Test common functions with varying levels of unknown support. |
| 242 | class FunctionStepTest |
no test coverage detected