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

Function TEST_F

extensions/protobuf/bind_proto_to_activation_test.cc:43–55  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

41using BindProtoToActivationTest = common_internal::ValueTest<>;
42
43TEST_F(BindProtoToActivationTest, BindProtoToActivation) {
44 TestAllTypes test_all_types;
45 test_all_types.set_single_int64(123);
46 Activation activation;
47
48 ASSERT_THAT(BindProtoToActivation(test_all_types, descriptor_pool(),
49 message_factory(), arena(), &activation),
50 IsOk());
51
52 EXPECT_THAT(activation.FindVariable("single_int64", descriptor_pool(),
53 message_factory(), arena()),
54 IsOkAndHolds(Optional(IntValueIs(123))));
55}
56
57TEST_F(BindProtoToActivationTest, BindProtoToActivationWktUnsupported) {
58 google::protobuf::Int64Value int64_value;

Callers

nothing calls this directly

Calls 5

IntValueIsFunction · 0.85
IsNullValueFunction · 0.85
BindProtoToActivationFunction · 0.70
FindVariableMethod · 0.45
set_valueMethod · 0.45

Tested by

no test coverage detected