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

Function test_noop_treebuilder

test/test_treebuilder.py:35–42  ·  view source on GitHub ↗
(barerepo: Repository)

Source from the content-addressed store, hash-verified

33
34
35def test_noop_treebuilder(barerepo: Repository) -> None:
36 tree = barerepo[TREE_SHA]
37 assert isinstance(tree, Tree)
38 bld = barerepo.TreeBuilder(TREE_SHA)
39 result = bld.write()
40
41 assert len(bld) == len(tree)
42 assert tree.id == result
43
44
45def test_noop_treebuilder_from_tree(barerepo: Repository) -> None:

Callers

nothing calls this directly

Calls 1

writeMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…