class documentation

class IterCommitContentsTests(CommitTestHelper, TestCase):

View In Hierarchy

Tests for iter_commit_contents.

Method assertCommitEntries Assert that iter_commit_contents results are equal to expected.
Method make_commits_with_contents Helper to prepare test commits.
Method test_iter_commit_contents_no_includes Test iterating commit contents without includes.
Method test_iter_commit_contents_overlapping_includes Test iterating commit contents with overlaps in includes.
Method test_iter_commit_contents_with_includes Test iterating commit contents with includes.

Inherited from CommitTestHelper:

Method make_commit Helper to create and store a commit.
Method setUp Set up test fixture.
Instance Variable _store Undocumented
def assertCommitEntries(self, results: Iterator[TreeEntry], expected: list[tuple[bytes, bytes]]):

Assert that iter_commit_contents results are equal to expected.

def make_commits_with_contents(self) -> Commit:

Helper to prepare test commits.

def test_iter_commit_contents_no_includes(self):

Test iterating commit contents without includes.

def test_iter_commit_contents_overlapping_includes(self):

Test iterating commit contents with overlaps in includes.

def test_iter_commit_contents_with_includes(self):

Test iterating commit contents with includes.