You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
314 B
18 lines
314 B
package msql
|
|
|
|
import (
|
|
. "testing"
|
|
|
|
"github.com/mediocregopher/mediocre-go-lib/mtest"
|
|
)
|
|
|
|
func TestMySQL(t *T) {
|
|
cmp := mtest.Component()
|
|
sql := InstMySQL(cmp, "test")
|
|
mtest.Run(cmp, t, func() {
|
|
_, err := sql.Exec("CREATE TABLE IF NOT EXISTS msql_test (id INT);")
|
|
if err != nil {
|
|
t.Fatal(err)
|
|
}
|
|
})
|
|
}
|
|
|