MCPcopy Create free account
hub / github.com/libgit2/pygit2 / test_lookup_branch_remote

Function test_lookup_branch_remote

test/test_branch_empty.py:94–97  ·  view source on GitHub ↗
(repo: Repository)

Source from the content-addressed store, hash-verified

92
93
94def test_lookup_branch_remote(repo: Repository) -> None:
95 branch = repo.lookup_branch('origin/master', BranchType.REMOTE)
96 assert branch.target == ORIGIN_MASTER_COMMIT
97 assert repo.lookup_branch('origin/not-exists', BranchType.REMOTE) is None
98
99
100def test_listall_branches(repo: Repository) -> None:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…