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

Function test_deep_contains

test/test_tree.py:202–213  ·  view source on GitHub ↗
(barerepo: Repository)

Source from the content-addressed store, hash-verified

200
201
202def test_deep_contains(barerepo: Repository) -> None:
203 tree = barerepo[TREE_SHA]
204 assert isinstance(tree, Tree)
205 assert 'a' in tree
206 assert 'c' in tree
207 assert 'c/d' in tree
208 assert 'c/e' not in tree
209 assert 'd' not in tree
210
211 assert isinstance(tree['c'], Tree)
212 assert 'd' in tree['c']
213 assert 'e' not in tree['c']

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…