configurator/providers/providers_test.go
Кобелев Андрей Андреевич e4ee241f81 Initial Commit
2022-06-03 11:21:52 +03:00

17 lines
250 B
Go

package providers
import (
"testing"
)
func TestGetList(t *testing.T) {
want := []ProviderType{FILE, ETCD, REDIS, BADGER}
arr := getList()
for i, v := range arr {
if v != want[i] {
t.Errorf("getList() = %v, want %v", arr, &want)
}
}
}