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

Function test_patch_create_from_blob_buffer_add

test/test_patch.py:124–132  ·  view source on GitHub ↗
(testrepo: Repository)

Source from the content-addressed store, hash-verified

122
123
124def test_patch_create_from_blob_buffer_add(testrepo: Repository) -> None:
125 patch = pygit2.Patch.create_from(
126 None,
127 BLOB_NEW_CONTENT,
128 old_as_path=BLOB_OLD_PATH,
129 new_as_path=BLOB_NEW_PATH,
130 )
131
132 assert patch.text == BLOB_PATCH_ADDED
133
134
135def test_patch_create_from_blob_buffer_delete(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…