(repo: Repository)
| 59 | |
| 60 | |
| 61 | def test_binary_diff(repo: Repository) -> None: |
| 62 | diff = repo.diff('HEAD', 'HEAD^') |
| 63 | assert PATCH_BINARY == diff.patch |
| 64 | diff = repo.diff('HEAD', 'HEAD^', flags=DiffOption.SHOW_BINARY) |
| 65 | assert PATCH_BINARY_SHOW == diff.patch |
| 66 | diff = repo.diff(b'HEAD', b'HEAD^') |
| 67 | assert PATCH_BINARY == diff.patch |
| 68 | diff = repo.diff(b'HEAD', b'HEAD^', flags=DiffOption.SHOW_BINARY) |
| 69 | assert PATCH_BINARY_SHOW == diff.patch |
nothing calls this directly
no test coverage detected
searching dependent graphs…