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

Function CallExprTwoArgs

extensions/math_ext_test.cc:166–179  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

164}
165
166Expr CallExprTwoArgs(absl::string_view operation) {
167 Expr expr;
168 auto call = expr.mutable_call_expr();
169 call->set_function(operation);
170
171 auto arg = call->add_args();
172 auto ident = arg->mutable_ident_expr();
173 ident->set_name("a");
174
175 arg = call->add_args();
176 ident = arg->mutable_ident_expr();
177 ident->set_name("b");
178 return expr;
179}
180
181void ExpectResult(const TestCase& test_case) {
182 Expr expr;

Callers 1

ExpectResultFunction · 0.85

Calls 2

set_functionMethod · 0.80
set_nameMethod · 0.45

Tested by

no test coverage detected