(testrepo: Repository)
| 270 | |
| 271 | |
| 272 | def test_refs_peel(testrepo: Repository) -> None: |
| 273 | ref = testrepo.references.get('refs/heads/master') |
| 274 | assert ref is not None |
| 275 | assert testrepo[ref.target].id == ref.peel().id |
| 276 | assert not isinstance(ref.raw_target, bytes) |
| 277 | assert testrepo[ref.raw_target].id == ref.peel().id |
| 278 | |
| 279 | commit = ref.peel(Commit) |
| 280 | assert commit.tree.id == ref.peel(Tree).id |
| 281 | |
| 282 | |
| 283 | def test_refs_equality(testrepo: Repository) -> None: |
nothing calls this directly
no test coverage detected
searching dependent graphs…