(t testing.TB, config *pgx.ConnConfig)
| 39 | } |
| 40 | |
| 41 | func mustConnect(t testing.TB, config *pgx.ConnConfig) *pgx.Conn { |
| 42 | conn, err := pgx.ConnectConfig(context.Background(), config) |
| 43 | if err != nil { |
| 44 | t.Fatalf("Unable to establish connection: %v", err) |
| 45 | } |
| 46 | return conn |
| 47 | } |
| 48 | |
| 49 | func closeConn(t testing.TB, conn *pgx.Conn) { |
| 50 | err := conn.Close(context.Background()) |
no outgoing calls
no test coverage detected