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

Function TestConnDeallocateNonExistentStatementSucceeds

pgconn/pgconn_test.go:982–996  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

980}
981
982func TestConnDeallocateNonExistentStatementSucceeds(t *testing.T) {
983 t.Parallel()
984
985 ctx, cancel := context.WithTimeout(context.Background(), 120*time.Second)
986 defer cancel()
987
988 pgConn, err := pgconn.Connect(ctx, os.Getenv("PGX_TEST_DATABASE"))
989 require.NoError(t, err)
990 defer closeConn(t, pgConn)
991
992 err = pgConn.Deallocate(ctx, "ps1")
993 require.NoError(t, err)
994
995 ensureConnValid(t, pgConn)
996}
997
998func TestConnExec(t *testing.T) {
999 t.Parallel()

Callers

nothing calls this directly

Calls 4

ConnectFunction · 0.92
closeConnFunction · 0.70
ensureConnValidFunction · 0.70
DeallocateMethod · 0.45

Tested by

no test coverage detected