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

Function test_checkout_paths

test/test_repository.py:269–275  ·  view source on GitHub ↗
(testrepo: Repository)

Source from the content-addressed store, hash-verified

267
268
269def test_checkout_paths(testrepo: Repository) -> None:
270 ref_i18n = testrepo.lookup_reference('refs/heads/i18n')
271 ref_master = testrepo.lookup_reference('refs/heads/master')
272 testrepo.checkout(ref_master)
273 testrepo.checkout(ref_i18n, paths=['new'])
274 status = testrepo.status()
275 assert status['new'] == FileStatus.INDEX_NEW
276
277
278def test_merge_base(testrepo: Repository) -> None:

Callers

nothing calls this directly

Calls 2

checkoutMethod · 0.80
statusMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…