(testrepo: Repository)
| 109 | |
| 110 | |
| 111 | def test_patch_create_from_blob_buffer(testrepo: Repository) -> None: |
| 112 | old_blob = testrepo[BLOB_OLD_SHA] |
| 113 | assert isinstance(old_blob, Blob) |
| 114 | patch = pygit2.Patch.create_from( |
| 115 | old_blob, |
| 116 | BLOB_NEW_CONTENT, |
| 117 | old_as_path=BLOB_OLD_PATH, |
| 118 | new_as_path=BLOB_NEW_PATH, |
| 119 | ) |
| 120 | |
| 121 | assert patch.text == BLOB_PATCH |
| 122 | |
| 123 | |
| 124 | def test_patch_create_from_blob_buffer_add(testrepo: Repository) -> None: |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…