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

Function test_patch_create_from_buffers

test/test_patch.py:84–92  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

82
83
84def test_patch_create_from_buffers() -> None:
85 patch = pygit2.Patch.create_from(
86 BLOB_OLD_CONTENT,
87 BLOB_NEW_CONTENT,
88 old_as_path=BLOB_OLD_PATH,
89 new_as_path=BLOB_NEW_PATH,
90 )
91
92 assert patch.text == BLOB_PATCH
93
94
95def test_patch_create_from_blobs(testrepo: Repository) -> None:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…