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

Function test_emptyodb

test/test_odb.py:47–54  ·  view source on GitHub ↗
(barerepo: Repository)

Source from the content-addressed store, hash-verified

45
46
47def test_emptyodb(barerepo: Repository) -> None:
48 odb = Odb()
49
50 assert len(list(odb)) == 0
51 assert BLOB_HEX not in odb
52 path = Path(barerepo.path) / 'objects'
53 odb.add_disk_alternate(path)
54 assert BLOB_HEX in odb
55
56
57@pytest.fixture

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…