From 374e4ba495db295d9f3ad52aa680255321e7c376 Mon Sep 17 00:00:00 2001 From: zhaque44 Date: Thu, 8 May 2025 19:08:42 -0500 Subject: [PATCH] rm unecessary scenarios Signed-off-by: zhaque44 --- internal/index/digest_test.go | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/internal/index/digest_test.go b/internal/index/digest_test.go index 001b067b..c56289d3 100644 --- a/internal/index/digest_test.go +++ b/internal/index/digest_test.go @@ -84,15 +84,6 @@ func TestNewDigester(t *testing.T) { }) } - t.Run("handles multiple WithIndex options, applying last one", func(t *testing.T) { - g := NewWithT(t) - firstIndex := map[string]string{"a": "b"} - secondIndex := map[string]string{"c": "d"} - d := NewDigester(WithIndex(firstIndex), WithIndex(secondIndex)) - g.Expect(d.index).To(Equal(secondIndex)) - }) -} - func TestDigester_Add(t *testing.T) { t.Run("adds", func(t *testing.T) { g := NewWithT(t) @@ -169,8 +160,8 @@ func TestDigester_Delete(t *testing.T) { g := NewWithT(t) d := NewDigester() d.Delete("non-existent") - g.Expect(d.index).To(BeEmpty()) // Index should remain empty - g.Expect(d.digests).To(BeEmpty()) // Digests should remain empty as no change + g.Expect(d.index).To(BeEmpty()) + g.Expect(d.digests).To(BeEmpty()) }) }