1
0
mirror of https://github.com/zrepl/zrepl.git synced 2025-04-24 11:29:22 +02:00
zrepl/client/migrate_test.go
2019-03-20 20:26:30 +01:00

17 lines
309 B
Go

package client
import "testing"
func TestMigrationsUnambiguousNames(t *testing.T) {
names := make(map[string]bool)
for _, mig := range migrations {
if _, ok := names[mig.Use]; ok {
t.Errorf("duplicate migration name %q", mig.Use)
t.FailNow()
return
} else {
names[mig.Use] = true
}
}
}