| 79 | } |
| 80 | |
| 81 | TEST(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 | |
| 91 | TEST(AstConvertersTest, PrimitiveTypeBoolToNative) { |
| 92 | cel::expr::Type type; |
nothing calls this directly
no test coverage detected