Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 56 for Promise (0.23 sec)

  1. android/guava-tests/test/com/google/common/base/CharMatcherTest.java

              throw new AssertionFailedError("You weren't supposed to actually invoke me!");
            }
          };
    
      public void testAnyAndNone_logicalOps() throws Exception {
        // These are testing behavior that's never promised by the API, but since
        // we're lucky enough that these do pass, it saves us from having to write
        // more excruciating tests! Hooray!
    
        assertSame(CharMatcher.any(), CharMatcher.none().negate());
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Feb 21 18:32:41 GMT 2024
    - 30.1K bytes
    - Viewed (0)
  2. internal/ioutil/ioutil.go

    			// we have written the entire stream, return right here.
    			return written, nil
    		}
    
    		if eof {
    			// We reached EOF prematurely but we did not write everything
    			// that we promised that we would write.
    			if totalSize > 0 && written != totalSize {
    				return written, io.ErrUnexpectedEOF
    			}
    			return written, nil
    		}
    	}
    }
    
    // SafeClose safely closes any channel of any type
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Fri Apr 19 11:26:59 GMT 2024
    - 10.3K bytes
    - Viewed (0)
  3. misc/cgo/gmp/gmp.go

    type Int struct {
    	i    C.mpz_t
    	init bool
    }
    
    // NewInt returns a new Int initialized to x.
    func NewInt(x int64) *Int { return new(Int).SetInt64(x) }
    
    // Int promises that the zero value is a 0, but in gmp
    // the zero value is a crash.  To bridge the gap, the
    // init bool says whether this is a valid gmp value.
    // doinit initializes z.i if it needs it.  This is not inherent
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Apr 11 16:34:30 GMT 2022
    - 9.5K bytes
    - Viewed (0)
  4. mockwebserver/src/main/kotlin/mockwebserver3/MockWebServer.kt

          }
        }
    
        @Throws(IOException::class)
        private fun pushPromises(
          stream: Http2Stream,
          request: RecordedRequest,
          promises: List<PushPromise>,
        ) {
          for (pushPromise in promises) {
            val pushedHeaders = mutableListOf<Header>()
            pushedHeaders.add(Header(Header.TARGET_AUTHORITY, url(pushPromise.path).host))
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Mar 31 17:16:15 GMT 2024
    - 37.4K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/collect/OrderingTest.java

            Arrays.asList(1, 2, 3, 4, 5),
            Ordering.<Integer>natural().leastOf(list.iterator(), Integer.MAX_VALUE));
      }
    
      public void testGreatestOfIterable_simple() {
        /*
         * If greatestOf() promised to be implemented as reverse().leastOf(), this
         * test would be enough. It doesn't... but we'll cheat and act like it does
         * anyway. There's a comment there to remind us to fix this if we change it.
         */
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 42.5K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/collect/OrderingTest.java

            Arrays.asList(1, 2, 3, 4, 5),
            Ordering.<Integer>natural().leastOf(list.iterator(), Integer.MAX_VALUE));
      }
    
      public void testGreatestOfIterable_simple() {
        /*
         * If greatestOf() promised to be implemented as reverse().leastOf(), this
         * test would be enough. It doesn't... but we'll cheat and act like it does
         * anyway. There's a comment there to remind us to fix this if we change it.
         */
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 42.5K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/base/SplitterTest.java

        assertSplitterIterableIsLazy(Splitter.on(","));
      }
    
      @J2ktIncompatible
      @GwtIncompatible // java.util.regex.Pattern
      @AndroidIncompatible // not clear that j.u.r.Matcher promises to handle mutations during use
      public void testSplitterIterableIsLazy_pattern() {
        if (!CommonPattern.isPcreLike()) {
          return;
        }
        assertSplitterIterableIsLazy(Splitter.onPattern(","));
      }
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 29.8K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/base/SplitterTest.java

        assertSplitterIterableIsLazy(Splitter.on(","));
      }
    
      @J2ktIncompatible
      @GwtIncompatible // java.util.regex.Pattern
      @AndroidIncompatible // not clear that j.u.r.Matcher promises to handle mutations during use
      public void testSplitterIterableIsLazy_pattern() {
        if (!CommonPattern.isPcreLike()) {
          return;
        }
        assertSplitterIterableIsLazy(Splitter.onPattern(","));
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 29.5K bytes
    - Viewed (0)
  9. okhttp/src/test/java/okhttp3/CacheTest.kt

        )
        val url = server.url("/a")
        assertThat(get(url).body.string()).isEqualTo("a")
        val i: Iterator<String> = cache.urls()
        cache.evictAll()
    
        // The URL was evicted before hasNext() made any promises.
        assertThat(i.hasNext()).isFalse()
        assertFailsWith<NoSuchElementException> {
          i.next()
        }
      }
    
      /** Test https://github.com/square/okhttp/issues/1712.  */
      @Test
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Apr 10 19:46:48 GMT 2024
    - 108.6K bytes
    - Viewed (0)
  10. api/go1.txt

    pkg syscall (darwin-386), const IFF_NOTRAILERS ideal-int
    pkg syscall (darwin-386), const IFF_OACTIVE ideal-int
    pkg syscall (darwin-386), const IFF_POINTOPOINT ideal-int
    pkg syscall (darwin-386), const IFF_PROMISC ideal-int
    pkg syscall (darwin-386), const IFF_RUNNING ideal-int
    pkg syscall (darwin-386), const IFF_SIMPLEX ideal-int
    pkg syscall (darwin-386), const IFNAMSIZ ideal-int
    pkg syscall (darwin-386), const IFT_1822 ideal-int
    Plain Text
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Aug 14 18:58:28 GMT 2013
    - 1.7M bytes
    - Viewed (1)
Back to top