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

Function test_write

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

Source from the content-addressed store, hash-verified

130
131
132def test_write(testrepo: Repository) -> None:
133 index = testrepo.index
134 index.add('bye.txt')
135 index.write()
136
137 index.clear()
138 assert 'bye.txt' not in index
139 index.read()
140 assert 'bye.txt' in index
141
142
143def test_read_tree(testrepo: Repository) -> None:

Callers

nothing calls this directly

Calls 4

clearMethod · 0.80
addMethod · 0.45
writeMethod · 0.45
readMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…