MCPcopy
hub / github.com/jackc/pgx / mustParseConfig

Function mustParseConfig

helper_test.go:35–39  ·  view source on GitHub ↗
(t testing.TB, connString string)

Source from the content-addressed store, hash-verified

33}
34
35func mustParseConfig(t testing.TB, connString string) *pgx.ConnConfig {
36 config, err := pgx.ParseConfig(connString)
37 require.Nil(t, err)
38 return config
39}
40
41func mustConnect(t testing.TB, config *pgx.ConnConfig) *pgx.Conn {
42 conn, err := pgx.ConnectConfig(context.Background(), config)

Calls

no outgoing calls

Tested by

no test coverage detected