bbgo_origin/pkg/migrations/sqlite3/migration_api_test.go

21 lines
324 B
Go
Raw Normal View History

2022-04-26 10:48:27 +00:00
package sqlite3
import (
"testing"
"github.com/c9s/rockhopper"
"github.com/stretchr/testify/assert"
)
func TestGetMigrationsMap(t *testing.T) {
mm := GetMigrationsMap()
assert.NotEmpty(t, mm)
}
func TestMergeMigrationsMap(t *testing.T) {
MergeMigrationsMap(map[int64]*rockhopper.Migration{
2023-08-01 12:17:20 +00:00
2: {},
3: {},
2022-04-26 10:48:27 +00:00
})
}