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

Function test_is_shallow

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

Source from the content-addressed store, hash-verified

984
985
986def test_is_shallow(testrepo: Repository) -> None:
987 assert not testrepo.is_shallow
988
989 # create a dummy shallow file
990 with (Path(testrepo.path) / 'shallow').open('wt') as f:
991 f.write('abcdef0123456789abcdef0123456789abcdef00\n')
992
993 assert testrepo.is_shallow
994
995
996def test_repository_hashfile(testrepo: Repository) -> None:

Callers

nothing calls this directly

Calls 2

openMethod · 0.80
writeMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…