INNER CODE UNIT · Go
Test_ResolveConfig
hidetatz/kubecolor · command/config_test.go:10
func Test_ResolveConfig(t *testing.T) {
tests := []struct {
name string
args []string
kubectlCommand string
expectedArgs []string
expectedConf *KubecolorConfig
}{
{
name: "no config",
args: []string{"get", "pods"},
expectedArgs: []string{"get", "pods"},
expectedConf: &KubecolorConfig{
Plain: false,
DarkBackground: true,
ForceColor: false,
KubectlCmd: "kubectl",
},