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

Function TEST

tensorflow/core/platform/str_util_test.cc:24–30  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

22namespace tensorflow {
23
24TEST(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
32string ExpectCUnescapeSuccess(StringPiece source) {
33 string dest;

Callers

nothing calls this directly

Calls 15

CEscapeFunction · 0.85
ExpectCUnescapeSuccessFunction · 0.85
CUnescapeFunction · 0.85
StripTrailingWhitespaceFunction · 0.85
RemoveLeadingWhitespaceFunction · 0.85
RemoveTrailingWhitespaceFunction · 0.85
RemoveWhitespaceContextFunction · 0.85
TestConsumeLeadingDigitsFunction · 0.85
TestConsumeNonWhitespaceFunction · 0.85
SkipEmptyClass · 0.85
SkipWhitespaceClass · 0.85
LowercaseFunction · 0.85

Tested by

no test coverage detected