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