mirror of
https://github.com/TECHNOFAB11/dbmate.git
synced 2025-12-12 08:00:04 +01:00
Move tests out of separate package
This commit is contained in:
parent
1d2493d2be
commit
275f5791f4
5 changed files with 36 additions and 62 deletions
|
|
@ -1,7 +1,6 @@
|
|||
package shared_test
|
||||
package shared
|
||||
|
||||
import (
|
||||
"github.com/adrianmacneil/dbmate/driver/shared"
|
||||
"github.com/stretchr/testify/require"
|
||||
"net/url"
|
||||
"testing"
|
||||
|
|
@ -11,7 +10,7 @@ func TestDatabaseName(t *testing.T) {
|
|||
u, err := url.Parse("ignore://localhost/foo?query")
|
||||
require.Nil(t, err)
|
||||
|
||||
name := shared.DatabaseName(u)
|
||||
name := DatabaseName(u)
|
||||
require.Equal(t, "foo", name)
|
||||
}
|
||||
|
||||
|
|
@ -19,6 +18,6 @@ func TestDatabaseName_Empty(t *testing.T) {
|
|||
u, err := url.Parse("ignore://localhost")
|
||||
require.Nil(t, err)
|
||||
|
||||
name := shared.DatabaseName(u)
|
||||
name := DatabaseName(u)
|
||||
require.Equal(t, "", name)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue