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

Function test_blame_index

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

Source from the content-addressed store, hash-verified

61
62
63def test_blame_index(testrepo: Repository) -> None:
64 blame = testrepo.blame(PATH)
65
66 assert len(blame) == 3
67
68 for i, hunk in enumerate(blame):
69 assert hunk.lines_in_hunk == 1
70 assert HUNKS[i][0] == hunk.final_commit_id
71 assert HUNKS[i][1] == hunk.final_start_line_number
72 assert HUNKS[i][2] == hunk.final_committer
73 assert HUNKS[i][0] == hunk.orig_commit_id
74 assert hunk.orig_path == PATH
75 assert HUNKS[i][1] == hunk.orig_start_line_number
76 assert HUNKS[i][2] == hunk.orig_committer
77 assert HUNKS[i][3] == hunk.boundary
78
79
80def test_blame_flags(blameflagsrepo: 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…