mediocre-go-lib/mdb/msql/sql_test.go
2019-02-24 16:30:53 -05:00

19 lines
317 B
Go

package msql
import (
. "testing"
"github.com/mediocregopher/mediocre-go-lib/mtest"
)
func TestMySQL(t *T) {
ctx := mtest.Context()
ctx, sql := WithMySQL(ctx, "test")
mtest.Run(ctx, t, func() {
_, err := sql.Exec("CREATE TABLE IF NOT EXISTS msql_test (id INT);")
if err != nil {
t.Fatal(err)
}
})
}