MCPcopy Create free account
hub / github.com/tensorflow/datasets / _mock_walk

Method _mock_walk

tensorflow_datasets/testing/test_utils.py:234–237  ·  view source on GitHub ↗
(self, original_fn, p)

Source from the content-addressed store, hash-verified

232 return [self._to_abs(p_out, state=state) for p_out in p_outs]
233
234 def _mock_walk(self, original_fn, p):
235 p, state = self._to_tmp(p, with_state=True)
236 for root, subdirs, filenames in original_fn(p):
237 yield (self._to_abs(root, state=state), subdirs, filenames)
238
239 def _mock(self):
240 return mock_gfile(

Callers

nothing calls this directly

Calls 2

_to_tmpMethod · 0.95
_to_absMethod · 0.95

Tested by

no test coverage detected