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

Function test_branch_remote_name

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

Source from the content-addressed store, hash-verified

106
107
108def test_branch_remote_name(repo: Repository) -> None:
109 branch = repo.lookup_branch('origin/master', BranchType.REMOTE)
110 assert branch.remote_name == 'origin'
111
112
113def test_branch_upstream(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…