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

Function test_added

tests/func/test_diff.py:31–40  ·  view source on GitHub ↗
(tmp_dir, scm, dvc)

Source from the content-addressed store, hash-verified

29
30
31def test_added(tmp_dir, scm, dvc):
32 tmp_dir.dvc_gen("file", "text")
33
34 assert dvc.diff() == {
35 "added": [{"path": "file", "hash": digest("text")}],
36 "deleted": [],
37 "modified": [],
38 "not in cache": [],
39 "renamed": [],
40 }
41
42
43def test_added_deep(tmp_dir, scm, dvc):

Callers

nothing calls this directly

Calls 3

digestFunction · 0.85
dvc_genMethod · 0.80
diffMethod · 0.45

Tested by

no test coverage detected