INNER CODE UNIT · Go
TestKubeConfig_handleContexts
sunny0826/kubecm · cmd/add_test.go:269
func TestKubeConfig_handleContexts(t *testing.T) {
newConfig := addTestConfig.DeepCopy()
singleConfig := singleTestConfig.DeepCopy()
type fields struct {
config *clientcmdapi.Config
fileName string
}
type args struct {
oldConfig *clientcmdapi.Config
context []string
contextPrefix string
contextTemplate []string
}
tests := []struct {
name string
fields fields
args args
want *clientcmdapi.Config