| 48 | using testutil::EqualsProto; |
| 49 | |
| 50 | TEST(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 | |
| 60 | TEST(FieldAccessTest, SetDurationBadDuration) { |
| 61 | Arena arena; |
nothing calls this directly
no test coverage detected