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

Function test_iterate_tree_nested

test/test_tree.py:189–199  ·  view source on GitHub ↗

Testing that we're able to iterate of a Tree object and then iterate trees we receive as a result.

(barerepo: Repository)

Source from the content-addressed store, hash-verified

187
188
189def test_iterate_tree_nested(barerepo: Repository) -> None:
190 """
191 Testing that we're able to iterate of a Tree object and then iterate
192 trees we receive as a result.
193 """
194 tree = barerepo[TREE_SHA]
195 assert isinstance(tree, Tree)
196 for tree_entry in tree:
197 if isinstance(tree_entry, pygit2.Tree):
198 for tree_entry2 in tree_entry:
199 pass
200
201
202def test_deep_contains(barerepo: Repository) -> None:

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…