(barerepo: Repository)
| 42 | |
| 43 | @utils.requires_refcount |
| 44 | def test_commit_refcount(barerepo: Repository) -> None: |
| 45 | commit = barerepo[COMMIT_SHA] |
| 46 | start = sys.getrefcount(commit) |
| 47 | tree = commit.tree |
| 48 | del tree |
| 49 | end = sys.getrefcount(commit) |
| 50 | assert start == end |
| 51 | |
| 52 | |
| 53 | def test_read_commit(barerepo: Repository) -> None: |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…