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

Function test_create_entry_aspath

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

Source from the content-addressed store, hash-verified

261
262
263def test_create_entry_aspath(testrepo: Repository) -> None:
264 index = testrepo.index
265 hello_entry = index[Path('hello.txt')]
266 entry = pygit2.IndexEntry(Path('README.md'), hello_entry.id, hello_entry.mode)
267 index.add(entry)
268 index.write_tree()
269
270
271def test_entry_eq(testrepo: Repository) -> None:

Callers

nothing calls this directly

Calls 2

write_treeMethod · 0.80
addMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…