Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 1,627 for _Equal (0.14 sec)

  1. staging/src/k8s.io/apiserver/pkg/server/mux/pathrecorder_test.go

    	assert.Equal(t, 1, fallThroughCount)
    	assert.Equal(t, resp.StatusCode, http.StatusOK)
    	resp, _ = http.Get(s.URL + "/publicPrefix")
    	assert.Equal(t, 2, fallThroughCount)
    	assert.Equal(t, resp.StatusCode, http.StatusOK)
    
    	http.Get(s.URL + "/publicPrefix/")
    	assert.Equal(t, 1, publicPrefixCount)
    	http.Get(s.URL + "/publicPrefix/something")
    	assert.Equal(t, 2, publicPrefixCount)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 26 16:15:13 UTC 2017
    - 4.4K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/endpoints/handlers/helpers_test.go

    	req.Header.Set("Accept", accept)
    
    	acceptWithReq := &lazyAccept{req}
    	assert.Equal(t, accept, fmt.Sprintf("%v", acceptWithReq))
    
    	acceptWithoutReq := &lazyAccept{}
    	assert.Equal(t, "unknown", fmt.Sprintf("%v", acceptWithoutReq))
    }
    
    func TestLazyVerb(t *testing.T) {
    	assert.Equal(t, "unknown", fmt.Sprintf("%v", &lazyVerb{}))
    
    	u, _ := url.Parse("?watch=true")
    	req := &http.Request{Method: "GET", URL: u}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Sep 03 15:25:35 UTC 2023
    - 5.4K bytes
    - Viewed (0)
  3. test/typeparam/mapsimp.dir/main.go

    	}
    }
    
    func TestEqual() {
    	if !a.Equal(m1, m1) {
    		panic(fmt.Sprintf("a.Equal(%v, %v) = false, want true", m1, m1))
    	}
    	if a.Equal(m1, nil) {
    		panic(fmt.Sprintf("a.Equal(%v, nil) = true, want false", m1))
    	}
    	if a.Equal(nil, m1) {
    		panic(fmt.Sprintf("a.Equal(nil, %v) = true, want false", m1))
    	}
    	if !a.Equal[int, int](nil, nil) {
    		panic("a.Equal(nil, nil) = false, want true")
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 24 02:14:15 UTC 2022
    - 3.6K bytes
    - Viewed (0)
  4. pkg/util/smallset/smallset_test.go

    	assert.Equal(t, set.List(), []string{"a", "b", "d"})
    	assert.Equal(t, nset.List(), []string{"a", "b", "c", "d", "z"})
    
    	assert.Equal(t, nset.Contains("a"), true)
    	assert.Equal(t, nset.Contains("b"), true)
    	assert.Equal(t, nset.Contains("c"), true)
    	assert.Equal(t, nset.Contains("d"), true)
    	assert.Equal(t, nset.Contains("e"), false)
    	assert.Equal(t, nset.Contains("z"), true)
    }
    
    func TestNew(t *testing.T) {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri May 10 23:33:56 UTC 2024
    - 4K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/collect/SimpleAbstractMultisetTest.java

        public void clear() {
          throw new UnsupportedOperationException();
        }
    
        @Override
        public int count(@Nullable Object element) {
          for (Entry<E> entry : entrySet()) {
            if (Objects.equal(entry.getElement(), element)) {
              return entry.getCount();
            }
          }
          return 0;
        }
    
        @Override
        public int add(E element, int occurrences) {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Feb 21 10:16:44 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  6. src/maps/maps_test.go

    func TestEqual(t *testing.T) {
    	if !Equal(m1, m1) {
    		t.Errorf("Equal(%v, %v) = false, want true", m1, m1)
    	}
    	if Equal(m1, (map[int]int)(nil)) {
    		t.Errorf("Equal(%v, nil) = true, want false", m1)
    	}
    	if Equal((map[int]int)(nil), m1) {
    		t.Errorf("Equal(nil, %v) = true, want false", m1)
    	}
    	if !Equal[map[int]int, map[int]int](nil, nil) {
    		t.Error("Equal(nil, nil) = false, want true")
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Dec 05 17:05:56 UTC 2023
    - 5.6K bytes
    - Viewed (0)
  7. pkg/proxy/ipvs/util/ipvs_test.go

    				Scheduler: "rr",
    				Flags:     0x1,
    				Timeout:   10800,
    			},
    			equal:  true,
    			reason: "All fields equal",
    		},
    	}
    
    	for i := range Tests {
    		equal := Tests[i].svcA.Equal(Tests[i].svcB)
    		if equal != Tests[i].equal {
    			t.Errorf("case: %d got %v, expected %v, reason: %s", i, equal, Tests[i].equal, Tests[i].reason)
    		}
    	}
    }
    
    func TestRealServerEqual(t *testing.T) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Dec 19 01:20:51 UTC 2023
    - 8K bytes
    - Viewed (0)
  8. test/literal2.go

    	// hexadecimal floats
    	assert(equal(0x1p-2, 0.25))
    	assert(equal(0x2.p10, 2048.0))
    	assert(equal(0x1.Fp+0, 1.9375))
    	assert(equal(0x.8p-0, 0.5))
    	assert(equal(0x1FFFp-16, 0.1249847412109375))
    	assert(equal(0x1.fffffffffffffp1023, 1.7976931348623157e308))
    	assert(equal(0x1.fffffffffffffp1023i, complex(0, 1.7976931348623157e308)))
    
    	assert(equal(0x_1p-2, 0.25))
    	assert(equal(0x2.p1_0, 2048.0))
    	assert(equal(0x1_0.Fp+0, 16.9375))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Feb 19 22:45:09 UTC 2019
    - 2.2K bytes
    - Viewed (0)
  9. pkg/config/analysis/analyzers/util/hosts_test.go

    	// wildcard, all namespaces scope
    	g.Expect(NewScopedFqdn("*", "foo", "*")).To(Equal(ScopedFqdn("*/*")))
    	// wildcard sub domain, all namespaces scope
    	g.Expect(NewScopedFqdn("*", "foo", "*.xyz.abc")).To(Equal(ScopedFqdn("*/*.xyz.abc")))
    
    	// external host, local scope
    	g.Expect(NewScopedFqdn("foo", "foo", "xyz.abc")).To(Equal(ScopedFqdn("foo/xyz.abc")))
    	// external host, all namespaces scope
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Oct 31 14:48:28 UTC 2023
    - 4.4K bytes
    - Viewed (0)
  10. android/guava-testlib/src/com/google/common/testing/ForwardingWrapperTester.java

    public final class ForwardingWrapperTester {
    
      private boolean testsEquals = false;
    
      /**
       * Asks for {@link Object#equals} and {@link Object#hashCode} to be tested. That is, forwarding
       * wrappers of equal instances should be equal.
       */
      @CanIgnoreReturnValue
      public ForwardingWrapperTester includingEquals() {
        this.testsEquals = true;
        return this;
      }
    
      /**
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 08 17:31:55 UTC 2024
    - 9.1K bytes
    - Viewed (0)
Back to top