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

Function TEST

common/constant_test.cc:34–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

32using ::testing::IsTrue;
33
34TEST(Constant, NullValue) {
35 Constant const_expr;
36 EXPECT_THAT(const_expr.has_null_value(), IsFalse());
37 const_expr.set_null_value();
38 EXPECT_THAT(const_expr.has_null_value(), IsTrue());
39 EXPECT_EQ(const_expr.kind().index(), ConstantKindIndexOf<std::nullptr_t>());
40 EXPECT_EQ(const_expr.kind_case(), ConstantKindCase::kNull);
41}
42
43TEST(Constant, BoolValue) {
44 Constant const_expr;

Callers

nothing calls this directly

Calls 4

StringifyFunction · 0.85
kind_caseMethod · 0.80
indexMethod · 0.45
kindMethod · 0.45

Tested by

no test coverage detected