(t *testing.T)
| 161 | } |
| 162 | |
| 163 | func TestSQLiteStore_Delete(t *testing.T) { |
| 164 | db := setupTestDB(t) |
| 165 | store := storage.NewSQLiteStore(db) |
| 166 | ctx := context.Background() |
| 167 | |
| 168 | ev := makeEvent("del-1", "sentry", "default") |
| 169 | store.Store(ctx, ev) |
| 170 | |
| 171 | if err := store.Delete(ctx, "del-1"); err != nil { |
| 172 | t.Fatalf("Delete: %v", err) |
| 173 | } |
| 174 | |
| 175 | found, _ := store.FindByUUID(ctx, "del-1") |
| 176 | if found != nil { |
| 177 | t.Error("expected event to be deleted") |
| 178 | } |
| 179 | } |
| 180 | |
| 181 | func TestSQLiteStore_DeleteAll(t *testing.T) { |
| 182 | db := setupTestDB(t) |
nothing calls this directly
no test coverage detected