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

Function TEST

testutil/expr_printer_test.cc:51–57  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

49};
50
51TEST(ExprPrinterTest, Identifier) {
52 Expr expr;
53 expr.mutable_ident_expr().set_name("foo");
54 expr.set_id(1);
55 ExprPrinter printer(TestAdorner::Get());
56 EXPECT_EQ(printer.Print(expr), ("foo#1"));
57}
58
59TEST(ExprPrinterTest, ConstantString) {
60 Expr expr;

Callers

nothing calls this directly

Calls 12

GetFunction · 0.85
set_functionMethod · 0.80
mutable_valueMethod · 0.80
set_iter_varMethod · 0.80
set_accu_varMethod · 0.80
existsMethod · 0.80
PrintProtoMethod · 0.80
set_nameMethod · 0.45
set_idMethod · 0.45
PrintMethod · 0.45
set_optionalMethod · 0.45
exprMethod · 0.45

Tested by

no test coverage detected