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

Function TEST

eval/public/value_export_util_test.cc:27–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25using google::protobuf::Arena;
26
27TEST(ValueExportUtilTest, ConvertBoolValue) {
28 CelValue cel_value = CelValue::CreateBool(true);
29 Value value;
30 EXPECT_OK(ExportAsProtoValue(cel_value, &value));
31 EXPECT_EQ(value.kind_case(), Value::KindCase::kBoolValue);
32 EXPECT_EQ(value.bool_value(), true);
33}
34
35TEST(ValueExportUtilTest, ConvertInt64Value) {
36 CelValue cel_value = CelValue::CreateInt64(-1);

Callers

nothing calls this directly

Calls 9

EqualsProtoFunction · 0.85
CreateContainerBackedMapFunction · 0.85
kind_caseMethod · 0.80
atMethod · 0.80
ExportAsProtoValueFunction · 0.70
CreateListFunction · 0.50
CreateMapFunction · 0.50
valueMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected