test RAM driver cant delete

This commit is contained in:
Bel LaPointe
2024-04-12 13:01:27 -06:00
parent cb44dfd49d
commit 83c8fccb78

View File

@@ -76,6 +76,12 @@ func testDriver(t *testing.T, d Driver) {
t.Error("cannot set from full:", err)
}
if err := d.ForEach(ctx, "m", func(string, []byte) error {
return errors.New("should have no hits")
}); err != nil {
t.Error("failed to forEach empty:", err)
}
if b, err := d.Get(ctx, "m", "id"); err != nil {
t.Error("cannot get from deleted:", err)
} else if b != nil {