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

Function TEST

eval/public/containers/field_access_test.cc:46–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

44using ::testing::HasSubstr;
45
46TEST(FieldAccessTest, SetDuration) {
47 Arena arena;
48 TestAllTypes msg;
49 const FieldDescriptor* field =
50 TestAllTypes::descriptor()->FindFieldByName("single_duration");
51 auto status = SetValueToSingleField(CelValue::CreateDuration(MaxDuration()),
52 field, &msg, &arena);
53 EXPECT_TRUE(status.ok());
54}
55
56TEST(FieldAccessTest, SetDurationBadDuration) {
57 Arena arena;

Callers

nothing calls this directly

Calls 15

MaxDurationFunction · 0.85
MaxTimestampFunction · 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
SetValueToSingleFieldFunction · 0.70

Tested by

no test coverage detected