bbgo_origin/pkg/migrations/mysql/migration_api_test.go
2024-01-19 15:28:56 +08:00

22 lines
418 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[registryKey]*rockhopper.Migration{
registryKey{Version: 2}: &rockhopper.Migration{},
registryKey{Version: 2}: &rockhopper.Migration{},
})
}