| 20 | namespace tensorflow { |
| 21 | |
| 22 | TEST(TimeUtil, ParseRfc3339Time) { |
| 23 | int64 mtime_nsec; |
| 24 | TF_EXPECT_OK(ParseRfc3339Time("2016-04-29T23:15:24.896Z", &mtime_nsec)); |
| 25 | // Compare milliseconds instead of nanoseconds. |
| 26 | EXPECT_NEAR(1461971724896, mtime_nsec / 1000 / 1000, 1); |
| 27 | } |
| 28 | |
| 29 | TEST(TimeUtil, ParseRfc3339Time_ParseError) { |
| 30 | int64 mtime_nsec; |
nothing calls this directly
no test coverage detected