(emptyrepo: Repository)
| 295 | |
| 296 | |
| 297 | def test_transfer_progress(emptyrepo: Repository) -> None: |
| 298 | class MyCallbacks(pygit2.RemoteCallbacks): |
| 299 | def transfer_progress(self, stats: TransferProgress) -> None: |
| 300 | self.tp = stats |
| 301 | |
| 302 | callbacks = MyCallbacks() |
| 303 | remote = emptyrepo.remotes[0] |
| 304 | stats = remote.fetch(callbacks=callbacks) |
| 305 | assert stats.received_bytes == callbacks.tp.received_bytes |
| 306 | assert stats.indexed_objects == callbacks.tp.indexed_objects |
| 307 | assert stats.received_objects == callbacks.tp.received_objects |
| 308 | |
| 309 | |
| 310 | def test_update_tips(emptyrepo: Repository) -> None: |
nothing calls this directly
no test coverage detected
searching dependent graphs…