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

Method _mock_fn

tensorflow_datasets/testing/test_utils.py:217–218  ·  view source on GitHub ↗
(self, original_fn, p, **kwargs)

Source from the content-addressed store, hash-verified

215 return original_fn(self._to_tmp(p), mode, **kwargs)
216
217 def _mock_fn(self, original_fn, p, **kwargs):
218 return self._validate_out(original_fn(self._to_tmp(p), **kwargs))
219
220 def _mock_fn_2_args(self, original_fn, p, p2, **kwargs):
221 return self._validate_out(

Callers

nothing calls this directly

Calls 2

_validate_outMethod · 0.95
_to_tmpMethod · 0.95

Tested by

no test coverage detected