MCPcopy Create free account
hub / github.com/libgit2/pygit2 / test_diff_parse

Function test_diff_parse

test/test_diff.py:434–443  ·  view source on GitHub ↗
(barerepo: Repository)

Source from the content-addressed store, hash-verified

432
433
434def test_diff_parse(barerepo: Repository) -> None:
435 diff = pygit2.Diff.parse_diff(PATCH)
436
437 stats = diff.stats
438 assert 2 == stats.deletions
439 assert 1 == stats.insertions
440 assert 2 == stats.files_changed
441
442 deltas = list(diff.deltas)
443 assert 2 == len(deltas)
444
445
446def test_parse_diff_null() -> None:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…