| 26 | using ::google::api::expr::testutil::EqualsProto; |
| 27 | |
| 28 | TEST(EncodeDuration, Basic) { |
| 29 | google::protobuf::Duration proto_duration; |
| 30 | ASSERT_OK( |
| 31 | EncodeDuration(absl::Seconds(2) + absl::Nanoseconds(3), &proto_duration)); |
| 32 | |
| 33 | EXPECT_THAT(proto_duration, EqualsProto("seconds: 2 nanos: 3")); |
| 34 | } |
| 35 | |
| 36 | TEST(EncodeDurationToString, Basic) { |
| 37 | ASSERT_OK_AND_ASSIGN( |
nothing calls this directly
no test coverage detected