1
0
forked from MTSR/mapserver
mapserver/tiledb/sqlite_test.go
NatureFreshMilk abfb61a12e tiledb stub
2019-01-14 12:38:26 +01:00

26 lines
359 B
Go

package tiledb
import (
"io/ioutil"
"os"
"testing"
)
func TestMigrate(t *testing.T) {
tmpfile, err := ioutil.TempFile("", "TestMigrateEmpty.*.sqlite")
if err != nil {
panic(err)
}
defer os.Remove(tmpfile.Name())
db, err := NewSqliteAccessor(tmpfile.Name())
if err != nil {
panic(err)
}
err = db.Migrate()
if err != nil {
panic(err)
}
}