(t *testing.T)
| 3373 | } |
| 3374 | |
| 3375 | func TestNewConnector(t *testing.T) { |
| 3376 | mycnf := configForTests(t) |
| 3377 | conn, err := NewConnector(mycnf) |
| 3378 | if err != nil { |
| 3379 | t.Fatal(err) |
| 3380 | } |
| 3381 | |
| 3382 | db := sql.OpenDB(conn) |
| 3383 | defer db.Close() |
| 3384 | |
| 3385 | if err := db.Ping(); err != nil { |
| 3386 | t.Fatal(err) |
| 3387 | } |
| 3388 | } |
| 3389 | |
| 3390 | type slowConnection struct { |
| 3391 | net.Conn |
nothing calls this directly
no test coverage detected