- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for EqualUnordered (0.13 sec)
-
pilot/pkg/xds/xds_test.go
Resolution: "STATIC", }, }) proxy := s.SetupProxy(baseProxy()) endpoints := xdstest.ExtractLoadAssignments(s.Endpoints(proxy)) if !slices.EqualUnordered(endpoints["outbound|80||app.com"], []string{"1.1.1.1:80"}) { t.Fatalf("expected 1.1.1.1, got %v", endpoints["outbound|80||app.com"]) } assertListEqual(t, xdstest.ExtractListenerNames(s.Listeners(proxy)), []string{
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Mar 27 16:59:05 UTC 2024 - 13.8K bytes - Viewed (0) -
pkg/slices/slices.go
// comparison stops at the first unequal pair. // Floating point NaNs are not considered equal. func Equal[E comparable](s1, s2 []E) bool { return slices.Equal(s1, s2) } // EqualUnordered reports whether two slices are equal, ignoring order func EqualUnordered[E comparable](s1, s2 []E) bool { if len(s1) != len(s2) { return false } first := make(map[E]struct{}, len(s1)) for _, c := range s1 { first[c] = struct{}{} }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed May 15 06:28:11 UTC 2024 - 7.9K bytes - Viewed (0) -
pilot/pkg/xds/mesh_network_test.go
for c, want := range w.expectations { got := eps[c] if !slices.EqualUnordered(got, want) { err := fmt.Errorf("cluster %s, expected %v, but got %v", c, want, got) fmt.Println(err) return err } } for c, got := range eps { want := w.expectations[c] if !slices.EqualUnordered(got, want) { err := fmt.Errorf("cluster %s, expected %v, but got %v", c, want, got)
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Mar 27 16:59:05 UTC 2024 - 24.6K bytes - Viewed (0) -
pkg/slices/slices_test.go
} var notEqual []string for i := 0; i < size; i++ { notEqual = append(notEqual, strconv.Itoa(i)) } notEqual[size-1] = "z" for n := 0; n < b.N; n++ { EqualUnordered(l, equal) EqualUnordered(l, notEqual) } } func TestFilterDuplicates(t *testing.T) { tests := []struct { name string in []string out []string }{ { name: "empty",
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri May 10 23:33:56 UTC 2024 - 18.2K bytes - Viewed (0) -
pilot/pkg/xds/delta.go
wr.NonceAcked = request.ResponseNonce wr.ResourceNames = currentResources alwaysRespond = wr.AlwaysRespond wr.AlwaysRespond = false return wr }) subChanged := !slices.EqualUnordered(previousResources, currentResources) // Spontaneous DeltaDiscoveryRequests from the client. // This can be done to dynamically add or remove elements from the tracked resource_names set.
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri Jun 14 04:34:37 UTC 2024 - 25.6K bytes - Viewed (0)