Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for sameStringSlice (0.19 sec)

  1. operator/pkg/util/util_test.go

    		t.Run(tt.desc, func(t *testing.T) {
    			if got, want := StringBoolMapToSlice(tt.in), tt.want; !(sameStringSlice(got, want)) {
    				t.Errorf("%s: got:%s, want: %s", tt.desc, got, want)
    			}
    		})
    	}
    }
    
    // Helper function to check if values in 2 slices are the same,
    // no correspondence to order
    func sameStringSlice(x, y []string) bool {
    	if len(x) != len(y) {
    		return false
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Jul 25 19:30:47 UTC 2022
    - 4.9K bytes
    - Viewed (0)
  2. pkg/registry/core/service/strategy.go

    	if svc == nil {
    		return false
    	}
    	for _, ing := range svc.Status.LoadBalancer.Ingress {
    		if ing.IPMode != nil {
    			return true
    		}
    	}
    	return false
    }
    
    func sameStringSlice(a []string, b []string) bool {
    	if len(a) != len(b) {
    		return false
    	}
    	for i := range a {
    		if a[i] != b[i] {
    			return false
    		}
    	}
    	return true
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 11 13:09:36 UTC 2024
    - 14.1K bytes
    - Viewed (0)
Back to top