rm unecessary scenarios

Signed-off-by: zhaque44 <haque.zubair@gmail.com>
This commit is contained in:
zhaque44 2025-05-08 19:08:42 -05:00
parent 15bbf61c50
commit 374e4ba495
1 changed files with 2 additions and 11 deletions

View File

@ -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) { func TestDigester_Add(t *testing.T) {
t.Run("adds", func(t *testing.T) { t.Run("adds", func(t *testing.T) {
g := NewWithT(t) g := NewWithT(t)
@ -169,8 +160,8 @@ func TestDigester_Delete(t *testing.T) {
g := NewWithT(t) g := NewWithT(t)
d := NewDigester() d := NewDigester()
d.Delete("non-existent") d.Delete("non-existent")
g.Expect(d.index).To(BeEmpty()) // Index should remain empty g.Expect(d.index).To(BeEmpty())
g.Expect(d.digests).To(BeEmpty()) // Digests should remain empty as no change g.Expect(d.digests).To(BeEmpty())
}) })
} }