MCPcopy
hub / github.com/gorakhargosh/watchdog / test_move_internal

Function test_move_internal

tests/test_snapshot_diff.py:68–77  ·  view source on GitHub ↗
(p)

Source from the content-addressed store, hash-verified

66
67
68def test_move_internal(p):
69 mkdir(p("dir1"))
70 mkdir(p("dir2"))
71 touch(p("dir1", "a"))
72 ref = DirectorySnapshot(p(""))
73 mv(p("dir1", "a"), p("dir2", "b"))
74 diff = DirectorySnapshotDiff(ref, DirectorySnapshot(p("")))
75 assert diff.files_moved == [(p("dir1", "a"), p("dir2", "b"))]
76 assert diff.files_created == []
77 assert diff.files_deleted == []
78
79
80def test_move_replace(p):

Callers

nothing calls this directly

Calls 6

DirectorySnapshotClass · 0.90
mkdirFunction · 0.85
touchFunction · 0.85
mvFunction · 0.85
pFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…