(t *testing.T)
| 864 | } |
| 865 | |
| 866 | func TestConfigCopyCanBeUsedToConnect(t *testing.T) { |
| 867 | connString := os.Getenv("PGX_TEST_DATABASE") |
| 868 | original, err := pgconn.ParseConfig(connString) |
| 869 | require.NoError(t, err) |
| 870 | |
| 871 | copied := original.Copy() |
| 872 | assert.NotPanics(t, func() { |
| 873 | _, err = pgconn.ConnectConfig(context.Background(), copied) |
| 874 | }) |
| 875 | assert.NoError(t, err) |
| 876 | } |
| 877 | |
| 878 | func TestNetworkAddress(t *testing.T) { |
| 879 | tests := []struct { |
nothing calls this directly
no test coverage detected