//go:build integration package recipe import ( "context" "testing" "github.com/food-ai/backend/internal/testutil" ) func TestRecipeRepository_GetByID_NotFound(t *testing.T) { pool := testutil.SetupTestDB(t) repo := NewRepository(pool) ctx := context.Background() got, err := repo.GetByID(ctx, "00000000-0000-0000-0000-000000000000") if err != nil { t.Fatalf("unexpected error: %v", err) } if got != nil { t.Error("expected nil for non-existent ID") } } func TestRecipeRepository_Count(t *testing.T) { pool := testutil.SetupTestDB(t) repo := NewRepository(pool) ctx := context.Background() _, err := repo.Count(ctx) if err != nil { t.Fatalf("count: %v", err) } }