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

Function _simplify_tree

tests/func/test_ls.py:830–837  ·  view source on GitHub ↗
(files)

Source from the content-addressed store, hash-verified

828
829
830def _simplify_tree(files):
831 ret = {}
832 for path, info in files.items():
833 if content := info.get("contents"):
834 ret[path] = _simplify_tree(content)
835 else:
836 ret[path] = None
837 return ret
838
839
840def test_ls_tree(tmp_dir, scm, dvc):

Callers 5

test_ls_treeFunction · 0.85
test_ls_tree_dvc_onlyFunction · 0.85
test_ls_tree_maxdepthFunction · 0.85
test_fs_ls_treeFunction · 0.85
test_fs_ls_tree_maxdepthFunction · 0.85

Calls 2

itemsMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected