INNER CODE UNIT · Go
TestGenerateContextName
sunny0826/kubecm · cmd/add_test.go:380
func TestGenerateContextName(t *testing.T) {
type fields struct {
config *clientcmdapi.Config
fileName string
}
type args struct {
name string
ctx *clientcmdapi.Context
contextTemplate []string
}
tests := []struct {
name string
fields fields
args args
want string
}{
{
name: "all attributes",