(t *testing.T)
| 47 | } |
| 48 | |
| 49 | func newReviewAPI(t *testing.T) (*agent.API, *identity.Store, *pgxpool.Pool, *capturePublisher) { |
| 50 | t.Helper() |
| 51 | pool := testutil.TestDB(t) |
| 52 | store := identity.NewStore(pool) |
| 53 | smtpRelay := outbound.NewSMTPRelay(&config.OutboundSMTPConfig{}) |
| 54 | sender := outbound.NewSender(smtpRelay, "test.e2a.dev") |
| 55 | api := agent.NewAPI(store, sender, smtpRelay, nil, usage.NewNoopUsageTracker(), "e2a.dev", "test.e2a.dev", "agents.e2a.dev", "", false) |
| 56 | cap := &capturePublisher{} |
| 57 | api.SetPublisher(cap) |
| 58 | return api, store, pool, cap |
| 59 | } |
| 60 | |
| 61 | func seedHeldInbound(t *testing.T, store *identity.Store, ctx context.Context, domain string) (userID, agentID, messageID string) { |
| 62 | t.Helper() |
no test coverage detected