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

Function test_branches_name

test/test_branch.py:122–131  ·  view source on GitHub ↗
(testrepo: Repository)

Source from the content-addressed store, hash-verified

120
121
122def test_branches_name(testrepo: Repository) -> None:
123 branch = testrepo.branches.get('master')
124 assert branch.branch_name == 'master'
125 assert branch.name == 'refs/heads/master'
126 assert branch.raw_branch_name == branch.branch_name.encode('utf-8')
127
128 branch = testrepo.branches.get('i18n')
129 assert branch.branch_name == 'i18n'
130 assert branch.name == 'refs/heads/i18n'
131 assert branch.raw_branch_name == branch.branch_name.encode('utf-8')
132
133
134def test_branches_with_commit(testrepo: 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…