class documentation

class FindShallowTests(CommitTestHelper, TestCase):

View In Hierarchy

Tests for finding shallow commits.

Method assertSameElements Assert that two sequences contain the same elements.
Method make_linear_commits Create a linear chain of commits.
Method test_linear Test finding shallow commits in a linear history.
Method test_merge Test finding shallow commits with merge commits.
Method test_multiple_independent Test finding shallow commits with multiple independent branches.
Method test_multiple_overlapping Test finding shallow commits with overlapping branches.
Method test_tag Test finding shallow commits with tags.

Inherited from CommitTestHelper:

Method make_commit Helper to create and store a commit.
Method setUp Set up test fixture.
Instance Variable _store Undocumented
def assertSameElements(self, expected: Sequence[object], actual: Sequence[object]):

Assert that two sequences contain the same elements.

def make_linear_commits(self, n: int, message: bytes = b'') -> list[Commit]:

Create a linear chain of commits.

def test_linear(self):

Test finding shallow commits in a linear history.

def test_merge(self):

Test finding shallow commits with merge commits.

def test_multiple_independent(self):

Test finding shallow commits with multiple independent branches.

def test_multiple_overlapping(self):

Test finding shallow commits with overlapping branches.

def test_tag(self):

Test finding shallow commits with tags.