(barerepo: Repository)
| 432 | |
| 433 | |
| 434 | def 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 | |
| 446 | def test_parse_diff_null() -> None: |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…