| 20 | namespace tensorflow { |
| 21 | |
| 22 | TEST(Base64, EncodeDecode) { |
| 23 | const string original = "a simple test message!"; |
| 24 | string encoded; |
| 25 | TF_EXPECT_OK(Base64Encode(original, &encoded)); |
| 26 | EXPECT_EQ("YSBzaW1wbGUgdGVzdCBtZXNzYWdlIQ", encoded); |
| 27 | |
| 28 | string decoded; |
| 29 | TF_EXPECT_OK(Base64Decode(encoded, &decoded)); |
| 30 | EXPECT_EQ(original, decoded); |
| 31 | } |
| 32 | |
| 33 | } // namespace tensorflow |
nothing calls this directly
no test coverage detected