From 7eb70792a3f8269c5c5216e3ce6236d08b263d32 Mon Sep 17 00:00:00 2001 From: Calvin Lobo Date: Wed, 28 Aug 2024 09:39:28 -0400 Subject: [PATCH] Improved test coverage for rolodex.GetFullLineCount() --- index/rolodex_test.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/index/rolodex_test.go b/index/rolodex_test.go index 30646890..77692d73 100644 --- a/index/rolodex_test.go +++ b/index/rolodex_test.go @@ -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) {