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

Method testReadBinaryMode

tensorflow/python/lib/io/file_io_test.py:77–81  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

75 self.assertEqual("new", file_contents)
76
77 def testReadBinaryMode(self):
78 file_path = os.path.join(self._base_dir, "temp_file")
79 file_io.write_string_to_file(file_path, "testing")
80 with file_io.FileIO(file_path, mode="rb") as f:
81 self.assertEqual(b"testing", f.read())
82
83 def testWriteBinaryMode(self):
84 file_path = os.path.join(self._base_dir, "temp_file")

Callers

nothing calls this directly

Calls 3

write_string_to_fileMethod · 0.80
joinMethod · 0.45
readMethod · 0.45

Tested by

no test coverage detected