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

Function ArgumentMatcher

eval/eval/function_step_test.cc:202–208  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

200}
201
202std::vector<CelValue::Type> ArgumentMatcher(int argument_count) {
203 std::vector<CelValue::Type> argument_matcher(argument_count);
204 for (int i = 0; i < argument_count; i++) {
205 argument_matcher[i] = CelValue::Type::kAny;
206 }
207 return argument_matcher;
208}
209
210std::vector<CelValue::Type> ArgumentMatcher(const CallExpr& call) {
211 return ArgumentMatcher(call.has_target() ? call.args().size() + 1

Callers 1

MakeTestFunctionStepFunction · 0.85

Calls 3

has_targetMethod · 0.80
argsMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected