(testrepo: Repository)
| 168 | |
| 169 | |
| 170 | def test_diff_blob(testrepo: Repository) -> None: |
| 171 | blob = testrepo[BLOB_SHA] |
| 172 | assert isinstance(blob, pygit2.Blob) |
| 173 | old_blob = testrepo['3b18e512dba79e4c8300dd08aeb37f8e728b8dad'] |
| 174 | assert isinstance(old_blob, pygit2.Blob) |
| 175 | patch = blob.diff(old_blob, old_as_path='hello.txt') |
| 176 | assert len(patch.hunks) == 1 |
| 177 | |
| 178 | |
| 179 | def test_diff_blob_to_buffer(testrepo: Repository) -> None: |
nothing calls this directly
no test coverage detected
searching dependent graphs…