2022-04-26 10:48:27 +00:00
|
|
|
package mysql
|
|
|
|
|
|
|
|
import (
|
|
|
|
"testing"
|
|
|
|
|
2024-01-18 13:36:04 +00:00
|
|
|
"github.com/c9s/rockhopper/v2"
|
|
|
|
|
2022-04-26 10:48:27 +00:00
|
|
|
"github.com/stretchr/testify/assert"
|
|
|
|
)
|
|
|
|
|
|
|
|
func TestGetMigrationsMap(t *testing.T) {
|
|
|
|
mm := GetMigrationsMap()
|
|
|
|
assert.NotEmpty(t, mm)
|
|
|
|
}
|
|
|
|
|
|
|
|
func TestMergeMigrationsMap(t *testing.T) {
|
2024-01-24 07:56:04 +00:00
|
|
|
MergeMigrationsMap(map[rockhopper.RegistryKey]*rockhopper.Migration{
|
|
|
|
rockhopper.RegistryKey{Version: 2}: &rockhopper.Migration{},
|
|
|
|
rockhopper.RegistryKey{Version: 2}: &rockhopper.Migration{},
|
2022-04-26 10:48:27 +00:00
|
|
|
})
|
|
|
|
}
|