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

Function CheckHex32

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

Source from the content-addressed store, hash-verified

322}
323
324static void CheckHex32(uint32 v) {
325 using tensorflow::strings::Hex;
326 string actual = StrCat(Hex(v, tensorflow::strings::kZeroPad8));
327 string expected = Printf("%08x", v);
328 EXPECT_EQ(expected, actual) << " decimal value " << v;
329
330 actual = StrCat(Hex(v));
331 expected = Printf("%x", v);
332 EXPECT_EQ(expected, actual) << " decimal value " << v;
333}
334
335static void CheckHexSigned32(int32 v) {
336 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