MCPcopy Index your code
hub / github.com/tensorflow/datasets / contextmanager

Method contextmanager

tensorflow_datasets/testing/test_utils.py:138–141  ·  view source on GitHub ↗

Activate the mock file system.

(self)

Source from the content-addressed store, hash-verified

136
137 @contextlib.contextmanager
138 def contextmanager(self) -> Iterator['MockFs']:
139 """Activate the mock file system."""
140 with self.mock():
141 yield self
142
143 @contextlib.contextmanager
144 def mock(self):

Callers 2

__enter__Method · 0.95
_context_managersMethod · 0.80

Calls 1

mockMethod · 0.95

Tested by

no test coverage detected