Skip to content

Commit 374e4ba

Browse files
committed
rm unecessary scenarios
Signed-off-by: zhaque44 <[email protected]>
1 parent 15bbf61 commit 374e4ba

File tree

1 file changed

+2
-11
lines changed

1 file changed

+2
-11
lines changed

internal/index/digest_test.go

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -84,15 +84,6 @@ func TestNewDigester(t *testing.T) {
8484
})
8585
}
8686

87-
t.Run("handles multiple WithIndex options, applying last one", func(t *testing.T) {
88-
g := NewWithT(t)
89-
firstIndex := map[string]string{"a": "b"}
90-
secondIndex := map[string]string{"c": "d"}
91-
d := NewDigester(WithIndex(firstIndex), WithIndex(secondIndex))
92-
g.Expect(d.index).To(Equal(secondIndex))
93-
})
94-
}
95-
9687
func TestDigester_Add(t *testing.T) {
9788
t.Run("adds", func(t *testing.T) {
9889
g := NewWithT(t)
@@ -169,8 +160,8 @@ func TestDigester_Delete(t *testing.T) {
169160
g := NewWithT(t)
170161
d := NewDigester()
171162
d.Delete("non-existent")
172-
g.Expect(d.index).To(BeEmpty()) // Index should remain empty
173-
g.Expect(d.digests).To(BeEmpty()) // Digests should remain empty as no change
163+
g.Expect(d.index).To(BeEmpty())
164+
g.Expect(d.digests).To(BeEmpty())
174165
})
175166
}
176167

0 commit comments

Comments
 (0)