(barerepo: Repository)
| 166 | |
| 167 | @utils.requires_refcount |
| 168 | def test_lookup_commit_refcount(barerepo: Repository) -> None: |
| 169 | start = sys.getrefcount(barerepo) |
| 170 | commit_sha = '5fe808e8953c12735680c257f56600cb0de44b10' |
| 171 | commit = barerepo[commit_sha] |
| 172 | del commit |
| 173 | end = sys.getrefcount(barerepo) |
| 174 | assert start == end |
| 175 | |
| 176 | |
| 177 | def test_get_path(barerepo_path: tuple[Repository, Path]) -> None: |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…