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

Function CheckHex64

tensorflow/core/lib/strings/strcat_test.cc:309–322  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

307}
308
309static void CheckHex64(uint64 v) {
310 using tensorflow::strings::Hex;
311 string actual = StrCat(Hex(v, tensorflow::strings::kZeroPad16));
312 string expected = Printf("%016llx", static_cast<unsigned long long>(v));
313 EXPECT_EQ(expected, actual) << " decimal value " << v;
314
315 actual = StrCat(Hex(v, tensorflow::strings::kZeroPad8));
316 expected = Printf("%08llx", static_cast<unsigned long long>(v));
317 EXPECT_EQ(expected, actual) << " decimal value " << v;
318
319 actual = StrCat(Hex(v));
320 expected = Printf("%llx", static_cast<unsigned long long>(v));
321 EXPECT_EQ(expected, actual) << " decimal value " << v;
322}
323
324static void CheckHex32(uint32 v) {
325 using tensorflow::strings::Hex;

Callers 1

TestFastPrintsFunction · 0.85

Calls 3

HexClass · 0.85
PrintfFunction · 0.85
StrCatFunction · 0.70

Tested by

no test coverage detected