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

Function TEST

common/ast_proto_test.cc:81–89  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

79}
80
81TEST(AstConvertersTest, PrimitiveTypeUnspecifiedToNative) {
82 cel::expr::Type type;
83 type.set_primitive(cel::expr::Type::PRIMITIVE_TYPE_UNSPECIFIED);
84
85 auto native_type = ConvertProtoTypeToNative(type);
86
87 ASSERT_TRUE(native_type->has_primitive());
88 EXPECT_EQ(native_type->primitive(), PrimitiveType::kPrimitiveTypeUnspecified);
89}
90
91TEST(AstConvertersTest, PrimitiveTypeBoolToNative) {
92 cel::expr::Type type;

Callers

nothing calls this directly

Calls 15

NullTypeSpecClass · 0.85
DynTypeSpecClass · 0.85
AstToCheckedExprFunction · 0.85
EqualsProtoFunction · 0.85
AstToParsedExprFunction · 0.85
has_primitiveMethod · 0.80
primitiveMethod · 0.80
codeMethod · 0.80
messageMethod · 0.80
has_well_knownMethod · 0.80
well_knownMethod · 0.80
has_list_typeMethod · 0.80

Tested by

no test coverage detected