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

Function test_compress

test/test_refdb_backend.py:121–126  ·  view source on GitHub ↗
(repo: Repository)

Source from the content-addressed store, hash-verified

119
120
121def test_compress(repo: Repository) -> None:
122 repo = repo
123 packed_refs_file = Path(repo.path) / 'packed-refs'
124 assert not packed_refs_file.exists()
125 repo.backend.compress()
126 assert packed_refs_file.exists()
127
128
129def test_has_log(repo: Repository) -> None:

Callers

nothing calls this directly

Calls 2

existsMethod · 0.80
compressMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…