package export_test import ( "queryorchestration/internal/database" "queryorchestration/internal/database/repository" "queryorchestration/internal/export" "testing" "github.com/pashagolub/pgxmock/v3" "github.com/stretchr/testify/assert" ) func TestNew(t *testing.T) { pool, err := pgxmock.NewPool() if err != nil { t.Fatalf("failed to open pgxmock database: %v", err) } queries := repository.New(pool) db := &database.Connection{ Queries: queries, Pool: pool, } svc := export.New(db) assert.NotNil(t, svc) }