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

Function test_add

test/test_packbuilder.py:43–50  ·  view source on GitHub ↗
(testrepo: Repository)

Source from the content-addressed store, hash-verified

41
42
43def test_add(testrepo: Repository) -> None:
44 # Add a few objects and confirm that the count is correct
45 packbuilder = PackBuilder(testrepo)
46 objects_to_add = [obj for obj in testrepo]
47 packbuilder.add(objects_to_add[0])
48 assert len(packbuilder) == 1
49 packbuilder.add(objects_to_add[1])
50 assert len(packbuilder) == 2
51
52
53def test_add_recursively(testrepo: Repository) -> None:

Callers

nothing calls this directly

Calls 2

addMethod · 0.95
PackBuilderClass · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…