mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-27 17:25:16 +00:00
22 lines
451 B
Go
22 lines
451 B
Go
package mysql
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/c9s/rockhopper/v2"
|
|
|
|
"github.com/stretchr/testify/assert"
|
|
)
|
|
|
|
func TestGetMigrationsMap(t *testing.T) {
|
|
mm := GetMigrationsMap()
|
|
assert.NotEmpty(t, mm)
|
|
}
|
|
|
|
func TestMergeMigrationsMap(t *testing.T) {
|
|
MergeMigrationsMap(map[rockhopper.RegistryKey]*rockhopper.Migration{
|
|
rockhopper.RegistryKey{Version: 2}: &rockhopper.Migration{},
|
|
rockhopper.RegistryKey{Version: 2}: &rockhopper.Migration{},
|
|
})
|
|
}
|