Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for deepEqual (0.15 sec)

  1. istioctl/pkg/writer/envoy/configdump/listener.go

    		descrs = append(descrs, fmt.Sprintf("Trans: %s", match.TransportProtocol))
    	}
    
    	if len(match.ApplicationProtocols) > 0 {
    		found := false
    		for protDescr, protocols := range protDescrs {
    			if reflect.DeepEqual(match.ApplicationProtocols, protocols) {
    				found = true
    				descrs = append(descrs, protDescr)
    				break
    			}
    		}
    		if !found {
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Wed Nov 29 12:37:14 GMT 2023
    - 18.1K bytes
    - Viewed (0)
  2. istioctl/pkg/workload/workload_test.go

    		{name: "one-key-only", arg: []string{"key"}, want: map[string]string{"key": ""}},
    	}
    	for _, tt := range tests {
    		t.Run(tt.name, func(t *testing.T) {
    			if got := convertToStringMap(tt.arg); !reflect.DeepEqual(got, tt.want) {
    				t.Errorf("convertToStringMap() = %v, want %v", got, tt.want)
    			}
    		})
    	}
    }
    
    func TestSplitEqual(t *testing.T) {
    	tests := []struct {
    		arg       string
    		wantKey   string
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Wed Mar 27 16:59:05 GMT 2024
    - 14.6K bytes
    - Viewed (0)
  3. cni/pkg/plugin/plugin_test.go

    			args: args{ports: []string{"abcd", "2345", "abcd"}},
    			want: []string{"abcd", "2345"},
    		},
    	}
    	for _, tt := range tests {
    		t.Run(tt.name, func(t *testing.T) {
    			if got := dedupPorts(tt.args.ports); !reflect.DeepEqual(got, tt.want) {
    				t.Errorf("dedupPorts() = %v, want %v", got, tt.want)
    			}
    		})
    	}
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Wed May 08 15:58:51 GMT 2024
    - 17.5K bytes
    - Viewed (0)
  4. operator/cmd/mesh/test-util_test.go

    	}
    	if reflect.TypeOf(got.Node) != reflect.TypeOf(pv.value) {
    		return false, fmt.Errorf("comparison types don't match: got %v(%T), want %v(%T)", got.Node, got.Node, pv.value, pv.value)
    	}
    	if !reflect.DeepEqual(got.Node, pv.value) {
    		return false, fmt.Errorf("values don't match: got %v, want %v", got.Node, pv.value)
    	}
    	return true, nil
    }
    
    // FailureMessage implements the Matcher interface.
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Tue Oct 31 14:48:28 GMT 2023
    - 15.3K bytes
    - Viewed (0)
  5. operator/cmd/mesh/manifest-generate_test.go

    		// This one is not a selector, it must be an exact match
    		if sel := mustGetLabels(t, deployment, "spec.selector.matchLabels"); !reflect.DeepEqual(deploymentSelector, sel) {
    			t.Fatalf("Depployment selectors are immutable, but changed since 1.5. Was %v, now is %v", deploymentSelector, sel)
    		}
    	})
    }
    
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Thu Apr 18 18:16:49 GMT 2024
    - 43.5K bytes
    - Viewed (0)
Back to top