MCPcopy Create free account
hub / github.com/Mnexa-AI/e2a / TestDBURL

Function TestDBURL

internal/testutil/db.go:16–22  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

14const defaultTestDBURL = "postgres://e2a:e2a@localhost:5433/e2a_test?sslmode=disable"
15
16func TestDBURL() string {
17 dbURL := os.Getenv("E2A_TEST_DATABASE_URL")
18 if dbURL == "" {
19 dbURL = defaultTestDBURL
20 }
21 return dbURL
22}
23
24func OpenPreparedTestDB(ctx context.Context, dbURL string) (*pgxpool.Pool, error) {
25 if dbURL == "" {

Callers 5

mainFunction · 0.92
TestCmdValidate_FailuresFunction · 0.92
setupEnvFunction · 0.92
TestDBFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected