Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 90 of 1,995 for zero (0.41 sec)

  1. guava-testlib/src/com/google/common/collect/testing/testers/CollectionRemoveIfTester.java

      @CollectionSize.Require(absent = ZERO)
      public void testRemoveIf_sometimesTrue() {
        assertTrue(
            "removeIf(isEqual(present)) should return true",
            collection.removeIf(Predicate.isEqual(samples.e0())));
        expectMissing(samples.e0());
      }
    
      @CollectionFeature.Require(SUPPORTS_ITERATOR_REMOVE)
      @CollectionSize.Require(absent = ZERO)
      public void testRemoveIf_allPresent() {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Feb 20 17:00:05 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  2. guava-testlib/src/com/google/common/collect/testing/testers/SortedMapNavigationTester.java

          if (entries.size() >= 3) {
            c = entries.get(2);
          }
        }
      }
    
      @CollectionSize.Require(ZERO)
      public void testEmptyMapFirst() {
        try {
          navigableMap.firstKey();
          fail();
        } catch (NoSuchElementException e) {
        }
      }
    
      @CollectionSize.Require(ZERO)
      public void testEmptyMapLast() {
        try {
          assertNull(navigableMap.lastKey());
          fail();
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Feb 20 17:00:05 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  3. src/cmd/vendor/golang.org/x/sys/unix/syscall.go

    }
    
    // BytePtrToString takes a pointer to a sequence of text and returns the corresponding string.
    // If the pointer is nil, it returns the empty string. It assumes that the text sequence is terminated
    // at a zero byte; if the zero byte is not present, the program may crash.
    func BytePtrToString(p *byte) string {
    	if p == nil {
    		return ""
    	}
    	if *p == 0 {
    		return ""
    	}
    
    	// Find NUL terminator.
    	n := 0
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 2.8K bytes
    - Viewed (0)
  4. src/net/netip/netip.go

    func (ip Addr) v6u16(i uint8) uint16 {
    	return uint16(*(ip.addr.halves()[(i/4)%2]) >> ((3 - i%4) * 16))
    }
    
    // isZero reports whether ip is the zero value of the IP type.
    // The zero value is not a valid IP address of any type.
    //
    // Note that "0.0.0.0" and "::" are not the zero value. Use IsUnspecified to
    // check for these values instead.
    func (ip Addr) isZero() bool {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 17:10:01 UTC 2024
    - 43.2K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/ssa/_gen/RISCV64.rules

    // Small zeroing
    (Zero [0] _ mem) => mem
    (Zero [1] ptr mem) => (MOVBstore ptr (MOVDconst [0]) mem)
    (Zero [2] {t} ptr mem) && t.Alignment()%2 == 0 =>
    	(MOVHstore ptr (MOVDconst [0]) mem)
    (Zero [2] ptr mem) =>
    	(MOVBstore [1] ptr (MOVDconst [0])
    		(MOVBstore ptr (MOVDconst [0]) mem))
    (Zero [4] {t} ptr mem) && t.Alignment()%4 == 0 =>
    	(MOVWstore ptr (MOVDconst [0]) mem)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 07 14:57:07 UTC 2024
    - 40.3K bytes
    - Viewed (0)
  6. src/cmd/go/testdata/script/mod_tidy_diff.txt

    ! stdout 'diff current/go.mod tidy/go.mod'
    stdout 'diff current/go.sum tidy/go.sum'
    
    # Everything is tidy, should return zero exit code.
    go mod tidy
    go mod tidy -diff
    ! stdout 'diff current/go.mod tidy/go.mod'
    ! stdout 'diff current/go.sum tidy/go.sum'
    
    # go.mod requires updates, should return non-zero exit code.
    cp go.mod.orig go.mod
    ! go mod tidy -diff
    stdout 'diff current/go.mod tidy/go.mod'
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 14:56:56 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  7. src/html/template/exec_test.go

    	{"if 1", "{{if 1}}NON-ZERO{{else}}ZERO{{end}}", "NON-ZERO", tVal, true},
    	{"if 0", "{{if 0}}NON-ZERO{{else}}ZERO{{end}}", "ZERO", tVal, true},
    	{"if 1.5", "{{if 1.5}}NON-ZERO{{else}}ZERO{{end}}", "NON-ZERO", tVal, true},
    	{"if 0.0", "{{if .FloatZero}}NON-ZERO{{else}}ZERO{{end}}", "ZERO", tVal, true},
    	{"if 1.5i", "{{if 1.5i}}NON-ZERO{{else}}ZERO{{end}}", "NON-ZERO", tVal, true},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Feb 24 21:59:12 UTC 2024
    - 57.6K bytes
    - Viewed (0)
  8. guava-testlib/src/com/google/common/collect/testing/google/BiMapPutTester.java

      @CollectionSize.Require(ZERO)
      public void testPutPresentKeyDifferentValue() {
        getMap().put(k0(), v0());
        getMap().put(k0(), v1());
        // verify that the bimap is changed, and that the old inverse mapping
        // from v1 -> v0 is deleted
        expectContents(Helpers.mapEntry(k0(), v1()));
      }
    
      @MapFeature.Require(SUPPORTS_PUT)
      @CollectionSize.Require(ZERO)
      public void putDistinctKeysDistinctValues() {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Feb 20 17:00:05 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  9. guava-testlib/src/com/google/common/collect/testing/google/MultimapEqualsTester.java

     * the License.
     */
    
    package com.google.common.collect.testing.google;
    
    import static com.google.common.collect.testing.features.CollectionSize.ZERO;
    import static com.google.common.collect.testing.features.MapFeature.ALLOWS_NULL_KEYS;
    import static com.google.common.collect.testing.features.MapFeature.ALLOWS_NULL_VALUES;
    
    import com.google.common.annotations.GwtCompatible;
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Feb 21 16:49:06 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  10. pkg/api/service/warnings_test.go

    			},
    		},
    		{
    			name:    "Dual Stack IPv6-IPv4 and IPv4 with leading zeros",
    			service: service([]string{"2001:db8::2", "192.012.2.2"}),
    			want: []string{
    				`spec.clusterIPs[1]: IP address was accepted, but will be invalid in a future Kubernetes release: ParseAddr("192.012.2.2"): IPv4 field has octet with leading zero`,
    			},
    		},
    		{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jul 26 22:57:57 UTC 2023
    - 10.4K bytes
    - Viewed (0)
Back to top