mirror of
https://github.com/vmware-tanzu/velero.git
synced 2026-02-04 19:12:10 +00:00
20 lines
381 B
Go
20 lines
381 B
Go
package config
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/spf13/pflag"
|
|
"github.com/stretchr/testify/assert"
|
|
)
|
|
|
|
func TestGetDefaultConfig(t *testing.T) {
|
|
config := GetDefaultConfig()
|
|
assert.Equal(t, 1, config.ItemBlockWorkerCount)
|
|
}
|
|
|
|
func TestBindFlags(t *testing.T) {
|
|
config := GetDefaultConfig()
|
|
config.BindFlags(pflag.CommandLine)
|
|
assert.Equal(t, 1, config.ItemBlockWorkerCount)
|
|
}
|