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

Function test_entry_repr

test/test_index.py:288–298  ·  view source on GitHub ↗
(testrepo: Repository)

Source from the content-addressed store, hash-verified

286
287
288def test_entry_repr(testrepo: Repository) -> None:
289 index = testrepo.index
290 hello_entry = index['hello.txt']
291 assert (
292 repr(hello_entry)
293 == '<pygit2.index.IndexEntry path=hello.txt id=a520c24d85fbfc815d385957eed41406ca5a860b mode=33188>'
294 )
295 assert (
296 str(hello_entry)
297 == '<path=hello.txt id=a520c24d85fbfc815d385957eed41406ca5a860b mode=33188>'
298 )
299
300
301def test_create_empty() -> 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…