13 lines
217 B
Go
13 lines
217 B
Go
package pqx
|
|
|
|
import (
|
|
"testing"
|
|
)
|
|
|
|
func TestConnect(t *testing.T) {
|
|
_, err := Connect(map[string] string { "socket": "/private/tmp/.s.PGSQL.5432" })
|
|
if err != nil {
|
|
t.Fatal("Unable to establish connection")
|
|
}
|
|
}
|