(testrepo: Repository)
| 51 | |
| 52 | |
| 53 | def test_add_recursively(testrepo: Repository) -> None: |
| 54 | # Add the head object and referenced objects recursively and confirm that the count is correct |
| 55 | packbuilder = PackBuilder(testrepo) |
| 56 | assert isinstance(testrepo.head.target, Oid) |
| 57 | packbuilder.add_recur(testrepo.head.target) |
| 58 | |
| 59 | # expect a count of 4 made up of the following referenced objects: |
| 60 | # Commit |
| 61 | # Tree |
| 62 | # Blob: hello.txt |
| 63 | # Blob: .gitignore |
| 64 | |
| 65 | assert len(packbuilder) == 4 |
| 66 | |
| 67 | |
| 68 | def test_repo_pack(testrepo: Repository, tmp_path: Path) -> None: |
nothing calls this directly
no test coverage detected
searching dependent graphs…