mirror of
https://github.com/hanzoai/porto.git
synced 2026-11-03 18:08:27 +00:00
* Refactoring Logs * Changed lint * Removed err with rctx in ctx.go * Changed ctx.go and marshal.go
19 lines
353 B
Go
19 lines
353 B
Go
package migrate_test
|
|
|
|
import (
|
|
"database/sql"
|
|
"testing"
|
|
|
|
"github.com/effective-security/porto/x/xdb/migrate"
|
|
"github.com/stretchr/testify/assert"
|
|
)
|
|
|
|
func TestPostgres(t *testing.T) {
|
|
err := migrate.Postgres("test", "", 1, 1, nil)
|
|
assert.NoError(t, err)
|
|
|
|
assert.Panics(t, func() {
|
|
_ = migrate.Postgres("test", "testdata", 1, 1, &sql.DB{})
|
|
})
|
|
}
|