MCPcopy
hub / github.com/treeverse/dvc / gen

Method gen

dvc/testing/cloud.py:69–74  ·  view source on GitHub ↗
(self, struct, text="")

Source from the content-addressed store, hash-verified

67 path.write_text(contents, encoding="utf-8")
68
69 def gen(self, struct, text=""):
70 if isinstance(struct, (str, bytes, pathlib.PurePath)):
71 struct = {struct: text}
72
73 self._gen(struct)
74 return struct.keys()
75
76 def close(self): # noqa: B027
77 pass

Callers 15

test_importMethod · 0.45
test_import_dirMethod · 0.45
test_import_empty_dirMethod · 0.45
test_import_fileMethod · 0.45
test_import_dirMethod · 0.45
test_fileMethod · 0.45
test_dirMethod · 0.45
test_recursiveMethod · 0.45
test_get_fileMethod · 0.45
test_get_dirMethod · 0.45
test_get_url_to_dirMethod · 0.45

Calls 2

_genMethod · 0.95
keysMethod · 0.80

Tested by 15

test_importMethod · 0.36
test_import_dirMethod · 0.36
test_import_empty_dirMethod · 0.36
test_import_fileMethod · 0.36
test_import_dirMethod · 0.36
test_fileMethod · 0.36
test_dirMethod · 0.36
test_recursiveMethod · 0.36
test_get_fileMethod · 0.36
test_get_dirMethod · 0.36
test_get_url_to_dirMethod · 0.36