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

Function test_branch_name

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

Source from the content-addressed store, hash-verified

261
262
263def test_branch_name(testrepo: Repository) -> None:
264 branch = testrepo.lookup_branch('master')
265 assert branch.branch_name == 'master'
266 assert branch.name == 'refs/heads/master'
267
268 branch = testrepo.lookup_branch('i18n')
269 assert branch.branch_name == 'i18n'
270 assert branch.name == 'refs/heads/i18n'

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…