MCPcopy Create free account
hub / github.com/SourceCode-AI/aura / test_diff_file_removed

Function test_diff_file_removed

tests/test_diff.py:267–279  ·  view source on GitHub ↗
(fixtures)

Source from the content-addressed store, hash-verified

265
266
267def test_diff_file_removed(fixtures):
268 a_loc = ScanLocation(fixtures.path("diffs/1_a/src.py"))
269 d = diff.DiffAnalyzer()
270 d.compare([a_loc], [])
271
272 assert len(d.diffs) == 1
273 x = d.diffs[0]
274
275 assert x.operation == "D"
276 assert x.a_scan is a_loc
277 assert x.b_scan is None
278 assert x.similarity == 0.0
279 assert x.diff is None
280
281
282def test_diff_file_similar(fixtures):

Callers

nothing calls this directly

Calls 3

compareMethod · 0.95
ScanLocationClass · 0.90
pathMethod · 0.80

Tested by

no test coverage detected