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

Function closeConn

helper_test.go:49–54  ·  helper_test.go::closeConn
(t testing.TB, conn *pgx.Conn)

Source from the content-addressed store, hash-verified

47}
48
49func closeConn(t testing.TB, conn *pgx.Conn) {
50 err := conn.Close(context.Background())
51 if err != nil {
52 t.Fatalf("conn.Close unexpectedly failed: %v", err)
53 }
54}
55
56func mustExec(t testing.TB, conn *pgx.Conn, sql string, arguments ...any) (commandTag pgconn.CommandTag) {
57 var err error

Callers 15

TestCrateDBConnectFunction · 0.70
TestPrepareFunction · 0.70
TestPrepareBadSQLFailureFunction · 0.70
TestListenNotifyFunction · 0.70
TestFatalRxErrorFunction · 0.70
TestFatalTxErrorFunction · 0.70

Calls 1

CloseMethod · 0.65

Tested by

no test coverage detected