mirror of
https://github.com/iamxvbaba/gramsrv.git
synced 2026-11-16 19:22:39 +03:00
18 lines
318 B
Go
18 lines
318 B
Go
package deploy
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/golang-migrate/migrate/v4/source/iofs"
|
|
)
|
|
|
|
func TestMigrationsHaveUniqueVersions(t *testing.T) {
|
|
source, err := iofs.New(Migrations, "migrations")
|
|
if err != nil {
|
|
t.Fatalf("initialize embedded migrations: %v", err)
|
|
}
|
|
t.Cleanup(func() {
|
|
_ = source.Close()
|
|
})
|
|
}
|