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

Function test_binary_diff

test/test_diff_binary.py:61–69  ·  view source on GitHub ↗
(repo: Repository)

Source from the content-addressed store, hash-verified

59
60
61def 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

Callers

nothing calls this directly

Calls 1

diffMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…