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

Function test_blame_with_invalid_index

test/test_blame.py:97–104  ·  view source on GitHub ↗
(testrepo: Repository)

Source from the content-addressed store, hash-verified

95
96
97def test_blame_with_invalid_index(testrepo: Repository) -> None:
98 blame = testrepo.blame(PATH)
99
100 with pytest.raises(IndexError):
101 blame[100000]
102
103 with pytest.raises(OverflowError):
104 blame[-1]
105
106
107def test_blame_for_line(testrepo: Repository) -> None:

Callers

nothing calls this directly

Calls 1

blameMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…