From 9848492b1edf438a27de2a6607c22ccde91ce56d Mon Sep 17 00:00:00 2001 From: Bel LaPointe <153096461+breel-render@users.noreply.github.com> Date: Mon, 15 Apr 2024 15:50:18 -0600 Subject: [PATCH] no test driver non driver things --- driver_test.go | 52 -------------------------------------------------- 1 file changed, 52 deletions(-) diff --git a/driver_test.go b/driver_test.go index c8f6e7d..76af8bb 100644 --- a/driver_test.go +++ b/driver_test.go @@ -15,56 +15,4 @@ func TestDriver(t *testing.T) { t.Fatal(err) } defer d.Close() - - /* - if b, err := d.Get(ctx, "m", "id"); err != nil { - t.Error("cannot get from empty:", err) - } else if b != nil { - t.Error("got fake from empty") - } - - 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 err := d.Set(ctx, "m", "id", []byte(`"hello world"`)); err != nil { - t.Error("cannot set from empty:", err) - } - - if b, err := d.Get(ctx, "m", "id"); err != nil { - t.Error("cannot get from full:", err) - } else if string(b) != `"hello world"` { - t.Error("got fake from full") - } - - if err := d.ForEach(ctx, "m", func(id string, v []byte) error { - if id != "id" { - t.Error("for each id weird:", id) - } - if string(v) != `"hello world"` { - t.Error("for each value weird:", string(v)) - } - return io.EOF - }); err != io.EOF { - t.Error("failed to forEach full:", err) - } - - if err := d.Set(ctx, "m", "id", nil); err != nil { - 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 { - t.Error("got fake from deleted") - } - */ }