Files
porto/x/xdb/migrate/postgres_test.go
Daniel IssoupovandGitHub f89337ba0c Changed lint (#113)
* Refactoring Logs

* Changed lint

* Removed err with rctx in ctx.go

* Changed ctx.go and marshal.go
2022-12-30 05:35:20 +00:00

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{})
})
}