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

Function TestOperator

base/operators_test.cc:32–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30
31template <typename Op, typename OpId>
32void TestOperator(Op op, OpId id, absl::string_view name,
33 absl::string_view display_name, int precedence, Arity arity) {
34 EXPECT_EQ(op.id(), id);
35 EXPECT_EQ(Operator(op).id(), static_cast<OperatorId>(id));
36 EXPECT_EQ(op.name(), name);
37 EXPECT_EQ(op.display_name(), display_name);
38 EXPECT_EQ(op.precedence(), precedence);
39 EXPECT_EQ(op.arity(), arity);
40 EXPECT_EQ(Operator(op).arity(), arity);
41 EXPECT_EQ(Op(Operator(op)), op);
42}
43
44void TestUnaryOperator(UnaryOperator op, UnaryOperatorId id,
45 absl::string_view name, absl::string_view display_name,

Callers 3

TestUnaryOperatorFunction · 0.85
TestBinaryOperatorFunction · 0.85
TestTernaryOperatorFunction · 0.85

Calls 6

OperatorClass · 0.85
idMethod · 0.45
nameMethod · 0.45
display_nameMethod · 0.45
precedenceMethod · 0.45
arityMethod · 0.45

Tested by

no test coverage detected