(barerepo: Repository)
| 337 | |
| 338 | |
| 339 | def test_diff_patch(barerepo: Repository) -> None: |
| 340 | commit_a = barerepo[COMMIT_SHA1_1] |
| 341 | commit_b = barerepo[COMMIT_SHA1_2] |
| 342 | |
| 343 | diff = commit_a.tree.diff_to_tree(commit_b.tree) |
| 344 | assert diff.patch == PATCH |
| 345 | assert len(diff) == len([patch for patch in diff]) |
| 346 | |
| 347 | |
| 348 | def test_diff_ids(barerepo: Repository) -> None: |
nothing calls this directly
no test coverage detected
searching dependent graphs…