(testrepo: Repository)
| 253 | |
| 254 | |
| 255 | def test_create_entry(testrepo: Repository) -> None: |
| 256 | index = testrepo.index |
| 257 | hello_entry = index['hello.txt'] |
| 258 | entry = pygit2.IndexEntry('README.md', hello_entry.id, hello_entry.mode) |
| 259 | index.add(entry) |
| 260 | assert '60e769e57ae1d6a2ab75d8d253139e6260e1f912' == index.write_tree() |
| 261 | |
| 262 | |
| 263 | def test_create_entry_aspath(testrepo: Repository) -> None: |
nothing calls this directly
no test coverage detected
searching dependent graphs…