(t *testing.T)
| 732 | } |
| 733 | |
| 734 | func TestLongestBranch1(t *testing.T) { |
| 735 | |
| 736 | branchSpecs := []BranchSpec{ |
| 737 | { |
| 738 | NumRevs: 60, |
| 739 | Digest: "non-winning unresolved", |
| 740 | LastRevisionIsTombstone: false, |
| 741 | }, |
| 742 | { |
| 743 | NumRevs: 25, |
| 744 | Digest: "non-winning tombstoned", |
| 745 | LastRevisionIsTombstone: true, |
| 746 | }, |
| 747 | } |
| 748 | revTree := getMultiBranchTestRevtree1(base.TestCtx(t), 50, 100, branchSpecs) |
| 749 | |
| 750 | assert.True(t, revTree.LongestBranch() == 150) |
| 751 | |
| 752 | } |
| 753 | |
| 754 | func TestLongestBranch2(t *testing.T) { |
| 755 |
nothing calls this directly
no test coverage detected