Skip to content

Commit

Permalink
Improved test coverage for rolodex.GetFullLineCount()
Browse files Browse the repository at this point in the history
  • Loading branch information
Calvin Lobo authored and daveshanley committed Aug 28, 2024
1 parent 43144de commit 7eb7079
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions index/rolodex_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1174,6 +1174,10 @@ components:

assert.GreaterOrEqual(t, len(rolodex.GetIgnoredCircularReferences()), 1)

expectedFullLineCount := (strings.Count(first, "\n") + 1) + (strings.Count(second, "\n") + 1) +
(strings.Count(third, "\n") + 1) + (strings.Count(fourth, "\n") + 1)
assert.Equal(t, int64(expectedFullLineCount), rolodex.GetFullLineCount())

}

func TestRolodex_IndexCircularLookup_PolyItemsFileOnly_LocalIncluded(t *testing.T) {
Expand Down

0 comments on commit 7eb7079

Please sign in to comment.