MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / TEST

Function TEST

tensorflow/core/platform/cloud/time_util_test.cc:22–27  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20namespace tensorflow {
21
22TEST(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
29TEST(TimeUtil, ParseRfc3339Time_ParseError) {
30 int64 mtime_nsec;

Callers

nothing calls this directly

Calls 1

ParseRfc3339TimeFunction · 0.85

Tested by

no test coverage detected