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

Function test_noop_treebuilder_from_tree

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

Source from the content-addressed store, hash-verified

43
44
45def test_noop_treebuilder_from_tree(barerepo: Repository) -> None:
46 tree = barerepo[TREE_SHA]
47 assert isinstance(tree, Tree)
48 bld = barerepo.TreeBuilder(tree)
49 result = bld.write()
50
51 assert len(bld) == len(tree)
52 assert tree.id == result
53
54
55def test_rebuild_treebuilder(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…