MCPcopy Create free account
hub / github.com/buggregator/server / TestSQLiteStore_FindByUUID_NotFound

Function TestSQLiteStore_FindByUUID_NotFound

internal/storage/sqlite_test.go:68–79  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

66}
67
68func TestSQLiteStore_FindByUUID_NotFound(t *testing.T) {
69 db := setupTestDB(t)
70 store := storage.NewSQLiteStore(db)
71
72 found, err := store.FindByUUID(context.Background(), "nonexistent")
73 if err != nil {
74 t.Fatalf("FindByUUID: %v", err)
75 }
76 if found != nil {
77 t.Errorf("expected nil, got %+v", found)
78 }
79}
80
81func TestSQLiteStore_FindAll(t *testing.T) {
82 db := setupTestDB(t)

Callers

nothing calls this directly

Calls 3

FindByUUIDMethod · 0.95
NewSQLiteStoreFunction · 0.92
setupTestDBFunction · 0.70

Tested by

no test coverage detected