Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 67 for EQUAL (0.12 sec)

  1. pilot/pkg/networking/core/route/retry/retry_test.go

    				g.Expect(policy.RetryOn).To(Equal("some,fake,conditions"))
    				g.Expect(policy.PerTryTimeout).To(Equal(durationpb.New(time.Second * 3)))
    				g.Expect(policy.NumRetries.Value).To(Equal(uint32(2)))
    				g.Expect(policy.RetriableStatusCodes).To(Equal(make([]uint32, 0)))
    				g.Expect(policy.RetryPriority).To(BeNil())
    				g.Expect(policy.HostSelectionRetryMaxAttempts).To(Equal(retry.DefaultPolicy().HostSelectionRetryMaxAttempts))
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 14 14:12:39 UTC 2024
    - 7.7K bytes
    - Viewed (0)
  2. pilot/pkg/networking/core/listenertest/match.go

    	}
    	if want.Name != "" {
    		assert.Equal(t, want.Name, have.Name, context("name should be equal"))
    	}
    	if want.Type != "" {
    		assert.Equal(t, want.Type, haveType, context(fmt.Sprintf("type should be equal (%+v)", have.FilterChainMatch)))
    	}
    	if want.Port != 0 {
    		assert.Equal(t, want.Port, have.GetFilterChainMatch().GetDestinationPort().GetValue(), context("port should be equal"))
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 13 01:56:28 UTC 2024
    - 6.4K bytes
    - Viewed (0)
  3. src/crypto/internal/hpke/hpke_test.go

    			if err != nil {
    				t.Fatal(err)
    			}
    
    			expectedEncap := mustDecodeHex(t, setup["enc"])
    			if !bytes.Equal(encap, expectedEncap) {
    				t.Errorf("unexpected encapsulated key, got: %x, want %x", encap, expectedEncap)
    			}
    			expectedSharedSecret := mustDecodeHex(t, setup["shared_secret"])
    			if !bytes.Equal(context.sharedSecret, expectedSharedSecret) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 22:33:33 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  4. src/maps/iter_test.go

    		0: 1,
    		2: 3,
    		4: 5,
    		6: 7,
    		8: 9,
    	} {
    		want[i] = v
    	}
    
    	if !Equal(got, want) {
    		t.Errorf("Insert got: %v, want: %v", got, want)
    	}
    }
    
    func TestCollect(t *testing.T) {
    	m := map[int]int{
    		0: 1,
    		2: 3,
    		4: 5,
    		6: 7,
    		8: 9,
    	}
    	got := Collect(All(m))
    	if !Equal(got, m) {
    		t.Errorf("Collect got: %v, want: %v", got, m)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:44:19 UTC 2024
    - 1.9K bytes
    - Viewed (0)
  5. cni/pkg/nodeagent/cni-watcher_test.go

    		p, err := pluginServer.getPodWithRetry(log, pod.Name, pod.Namespace)
    		assert.NoError(t, err)
    		assert.Equal(t, p, pod)
    	})
    	t.Run("no pod", func(t *testing.T) {
    		p, err := pluginServer.getPodWithRetry(log, "fake", pod.Namespace)
    		assert.Error(t, err)
    		assert.Equal(t, p, nil)
    	})
    	t.Run("pod out of ambient", func(t *testing.T) {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 06 21:31:35 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apimachinery/pkg/apis/meta/v1/micro_time.go

    	if t != nil && u != nil {
    		return t.Time.Before(u.Time)
    	}
    	return false
    }
    
    // Equal reports whether the time instant t is equal to u.
    func (t *MicroTime) Equal(u *MicroTime) bool {
    	if t == nil && u == nil {
    		return true
    	}
    	if t != nil && u != nil {
    		return t.Time.Equal(u.Time)
    	}
    	return false
    }
    
    // BeforeTime reports whether the time instant t is before second-lever precision u.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 21:48:10 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  7. pilot/pkg/serviceregistry/util/workloadinstances/index_test.go

    	verifyGetByIP := func(ip string, expected []*model.WorkloadInstance) {
    		assert.Equal(t, expected, index.GetByIP(ip))
    	}
    
    	// GetByIP should return 2 workload instances
    
    	verifyGetByIP("2.2.2.2", []*model.WorkloadInstance{wi3, wi1})
    
    	// Delete should return previously inserted value
    
    	deleted := index.Delete(wi1)
    	assert.Equal(t, wi1, deleted)
    
    	// GetByIP should return 1 workload instance
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 23 21:07:03 UTC 2024
    - 5K bytes
    - Viewed (0)
  8. doc/next/6-stdlib/2-unique.md

    Any value of comparable type may be canonicalized with the new
    `Make[T]` function, which produces a reference to a canonical copy of
    the value in the form of a `Handle[T]`.
    Two `Handle[T]` are equal if and only if the values used to produce the
    handles are equal, allowing programs to deduplicate values and reduce
    their memory footprint.
    Comparing two `Handle[T]` values is efficient, reducing down to a simple
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 18:34:13 UTC 2024
    - 566 bytes
    - Viewed (0)
  9. cmd/kubeadm/app/phases/certs/renewal/readwriter_test.go

    	// Reads the certificate
    	readCert, err := pkiReadWriter.Read()
    	if err != nil {
    		t.Fatalf("couldn't read certificate: %v", err)
    	}
    
    	// Check if the certificate read from disk is equal to the original one
    	if !cert.Equal(readCert) {
    		t.Errorf("read cert does not match with expected cert")
    	}
    
    	// Create a new cert
    	newCert, newkey, err := pkiutil.NewCertAndKey(testCACert, testCAKey, testCertCfg)
    	if err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 30 15:17:24 UTC 2024
    - 9.5K bytes
    - Viewed (0)
  10. pkg/slices/slices.go

    	"golang.org/x/exp/constraints"
    )
    
    // Equal reports whether two slices are equal: the same length and all
    // elements equal. If the lengths are different, Equal returns false.
    // Otherwise, the elements are compared in increasing index order, and the
    // 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)
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 15 06:28:11 UTC 2024
    - 7.9K bytes
    - Viewed (0)
Back to top