Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for newScopeStackTraceLevelPair (0.11 sec)

  1. istioctl/pkg/admin/istiodconfig_test.go

    	for _, tt := range tests {
    		t.Run(tt.name, func(t *testing.T) {
    			got, err := newScopeStackTraceLevelPair(tt.args.sslp, tt.args.validationPattern)
    			if (err != nil) != tt.wantErr {
    				t.Errorf("newScopeStackTraceLevelPair() error = %v, wantErr %v", err, tt.wantErr)
    				return
    			}
    			if !reflect.DeepEqual(got, tt.want) {
    				t.Errorf("newScopeStackTraceLevelPair() got = %v, want %v", got, tt.want)
    			}
    		})
    	}
    }
    
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Thu Jun 15 15:02:17 UTC 2023
    - 6.2K bytes
    - Viewed (0)
  2. istioctl/pkg/admin/istiodconfig.go

    			return nil, err
    		}
    		si := &ScopeInfo{
    			Name:        sl.scope,
    			OutputLevel: sl.logLevel,
    		}
    		scopeInfos = append(scopeInfos, si)
    	}
    	return scopeInfos, nil
    }
    
    func newScopeStackTraceLevelPair(sslp, validationPattern string) (*scopeStackTraceLevelPair, error) {
    	matched, err := regexp.MatchString(validationPattern, sslp)
    	if err != nil {
    		return nil, err
    	}
    	if !matched {
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Sat Apr 13 05:23:38 UTC 2024
    - 13.5K bytes
    - Viewed (0)
Back to top