Improved test coverage for rolodex.GetFullLineCount()

This commit is contained in:
Calvin Lobo
2024-08-28 09:39:28 -04:00
committed by quobix
parent 43144dec72
commit 7eb70792a3

View File

@@ -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) {