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

Method testMultipleFiles

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

Source from the content-addressed store, hash-verified

99 self.assertEqual("begin\na1\na2\n", file_contents)
100
101 def testMultipleFiles(self):
102 file_prefix = os.path.join(self._base_dir, "temp_file")
103 for i in range(5000):
104 f = file_io.FileIO(file_prefix + str(i), mode="w+")
105 f.write("testing")
106 f.flush()
107 self.assertEqual("testing", f.read())
108 f.close()
109
110 def testMultipleWrites(self):
111 file_path = os.path.join(self._base_dir, "temp_file")

Callers

nothing calls this directly

Calls 6

writeMethod · 0.95
flushMethod · 0.95
readMethod · 0.95
closeMethod · 0.95
rangeFunction · 0.50
joinMethod · 0.45

Tested by

no test coverage detected