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

Function test_contains

test/test_repository_bare.py:102–109  ·  view source on GitHub ↗
(barerepo: Repository)

Source from the content-addressed store, hash-verified

100
101
102def test_contains(barerepo: Repository) -> None:
103 with pytest.raises(TypeError):
104 123 in barerepo # type: ignore
105 assert BLOB_OID in barerepo
106 assert BLOB_HEX in barerepo
107 assert BLOB_HEX[:10] in barerepo
108 assert ('a' * 40) not in barerepo
109 assert ('a' * 20) not in barerepo
110
111
112def test_iterable(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…