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

Function test_blame_with_invalid_line

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

Source from the content-addressed store, hash-verified

122
123
124def test_blame_with_invalid_line(testrepo: Repository) -> None:
125 blame = testrepo.blame(PATH)
126
127 with pytest.raises(IndexError):
128 blame.for_line(0)
129 with pytest.raises(IndexError):
130 blame.for_line(100000)
131 with pytest.raises(IndexError):
132 blame.for_line(-1)
133
134
135def test_blame_newest(testrepo: Repository) -> None:

Callers

nothing calls this directly

Calls 2

blameMethod · 0.80
for_lineMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…