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

Function TEST

tensorflow/core/lib/strings/base64_test.cc:22–31  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20namespace tensorflow {
21
22TEST(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

Callers

nothing calls this directly

Calls 2

Base64EncodeFunction · 0.85
Base64DecodeFunction · 0.85

Tested by

no test coverage detected