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

Function TEST

eval/public/structs/field_access_impl_test.cc:50–58  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

48using testutil::EqualsProto;
49
50TEST(FieldAccessTest, SetDuration) {
51 Arena arena;
52 TestAllTypes msg;
53 const FieldDescriptor* field =
54 TestAllTypes::descriptor()->FindFieldByName("single_duration");
55 auto status = SetValueToSingleField(CelValue::CreateDuration(MaxDuration()),
56 field, &msg, &arena);
57 EXPECT_TRUE(status.ok());
58}
59
60TEST(FieldAccessTest, SetDurationBadDuration) {
61 Arena arena;

Callers

nothing calls this directly

Calls 15

MaxDurationFunction · 0.85
MaxTimestampFunction · 0.85
IsCelMessageFunction · 0.85
EqualsProtoFunction · 0.85
GetDescriptorFunction · 0.85
IsCelBoolFunction · 0.85
IsCelInt64Function · 0.85
IsCelUint64Function · 0.85
IsCelDoubleFunction · 0.85
IsCelStringFunction · 0.85
IsCelBytesFunction · 0.85
codeMethod · 0.80

Tested by

no test coverage detected