| 22 | namespace tensorflow { |
| 23 | |
| 24 | TEST(CEscape, Basic) { |
| 25 | EXPECT_EQ(str_util::CEscape("hello"), "hello"); |
| 26 | EXPECT_EQ(str_util::CEscape("hello\n"), "hello\\n"); |
| 27 | EXPECT_EQ(str_util::CEscape("hello\r"), "hello\\r"); |
| 28 | EXPECT_EQ(str_util::CEscape("\t\r\"'"), "\\t\\r\\\"\\'"); |
| 29 | EXPECT_EQ(str_util::CEscape("\320hi\200"), "\\320hi\\200"); |
| 30 | } |
| 31 | |
| 32 | string ExpectCUnescapeSuccess(StringPiece source) { |
| 33 | string dest; |
nothing calls this directly
no test coverage detected