| 44 | using ::testing::HasSubstr; |
| 45 | |
| 46 | TEST(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 | |
| 56 | TEST(FieldAccessTest, SetDurationBadDuration) { |
| 57 | Arena arena; |
nothing calls this directly
no test coverage detected