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

Function test_branches_remote_get

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

Source from the content-addressed store, hash-verified

41
42
43def test_branches_remote_get(repo: Repository) -> None:
44 branch = repo.branches.remote.get('origin/master')
45 assert branch.target == ORIGIN_MASTER_COMMIT
46 assert repo.branches.remote.get('origin/not-exists') is None
47
48
49def test_branches_remote(repo: Repository) -> None:

Callers

nothing calls this directly

Calls 1

getMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…