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

Function test_diff_file_added

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

Source from the content-addressed store, hash-verified

249
250
251def test_diff_file_added(fixtures):
252 b_loc = ScanLocation(fixtures.path("diffs/1_a/src.py"))
253
254 d = diff.DiffAnalyzer()
255 d.compare([], [b_loc])
256
257 assert len(d.diffs) == 1
258 x = d.diffs[0]
259
260 assert x.operation == "A"
261 assert x.a_scan is None
262 assert x.b_scan is b_loc
263 assert x.similarity == 0.0
264 assert x.diff is None
265
266
267def test_diff_file_removed(fixtures):

Callers

nothing calls this directly

Calls 3

compareMethod · 0.95
ScanLocationClass · 0.90
pathMethod · 0.80

Tested by

no test coverage detected