Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for thatAll (0.12 sec)

  1. testing/architecture-test/src/test/java/org/gradle/architecture/test/ArchUnitFixture.java

            @Override
            public boolean test(JavaClass input) {
                return input.isPrimitive();
            }
        };
    
        static <T> DescribedPredicate<Collection<T>> thatAll(DescribedPredicate<T> predicate) {
            return new DescribedPredicate<Collection<T>>("that all %s", predicate.getDescription()) {
                @Override
                public boolean test(Collection<T> input) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:30 UTC 2024
    - 21.7K bytes
    - Viewed (0)
  2. mockwebserver-deprecated/src/test/java/okhttp3/mockwebserver/MockWebServerTest.kt

        }
      }
    
      @Test
      fun setStatusControlsWholeStatusLine() {
        val response = MockResponse().setStatus("HTTP/1.1 202 That'll do pig")
        assertThat(headersToList(response)).containsExactly("Content-Length: 0")
        assertThat(response.status).isEqualTo("HTTP/1.1 202 That'll do pig")
      }
    
      @Test
      fun setBodyAdjustsHeaders() {
        val response = MockResponse().setBody("ABC")
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 21.9K bytes
    - Viewed (0)
  3. mockwebserver/src/test/java/mockwebserver3/MockWebServerTest.kt

        }
      }
    
      @Test
      fun setStatusControlsWholeStatusLine() {
        val builder = MockResponse.Builder().status("HTTP/1.1 202 That'll do pig")
        assertThat(headersToList(builder)).containsExactly("Content-Length: 0")
        assertThat(builder.status).isEqualTo("HTTP/1.1 202 That'll do pig")
      }
    
      @Test
      fun setBodyAdjustsHeaders() {
        val builder = MockResponse.Builder().body("ABC")
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 23.5K bytes
    - Viewed (0)
  4. src/runtime/traceallocfree.go

    //
    // The world must be stopped and tracing must be enabled when this function is called.
    func traceSnapshotMemory(gen uintptr) {
    	assertWorldStopped()
    
    	// Write a batch containing information that'll be necessary to
    	// interpret the events.
    	var flushed bool
    	w := unsafeTraceExpWriter(gen, nil, traceExperimentAllocFree)
    	w, flushed = w.ensure(1 + 4*traceBytesPerNumber)
    	if flushed {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 20:32:51 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  5. okhttp/src/main/kotlin/okhttp3/Request.kt

       *
       * @param method defaults to "GET" if [body] is null, and "POST" otherwise.
       */
      constructor(
        url: HttpUrl,
        headers: Headers = headersOf(),
        // '\u0000' is a sentinel value that'll choose based on what the body is:
        method: String = "\u0000",
        body: RequestBody? = null,
      ) : this(
        Builder()
          .url(url)
          .headers(headers)
          .method(
            when {
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Sat Apr 06 04:17:44 UTC 2024
    - 10.5K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/ConcurrentHashMultiset.java

        }
    
        private List<Multiset.Entry<E>> snapshot() {
          List<Multiset.Entry<E>> list = Lists.newArrayListWithExpectedSize(size());
          // Not Iterables.addAll(list, this), because that'll forward right back here.
          Iterators.addAll(list, iterator());
          return list;
        }
      }
    
      /** @serialData the ConcurrentMap of elements and their counts. */
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 22 21:19:52 UTC 2024
    - 20.9K bytes
    - Viewed (0)
  7. okhttp/src/test/java/okhttp3/internal/ws/RealWebSocketTest.kt

        taskFaker.advanceUntil(ns(500L))
        server.processNextFrame() // Ping.
        client.processNextFrame() // Pong.
    
        // After 1000ms the client will attempt a ping 2, but we don't process it. That'll cause the
        // client to fail at 1500ms when it's time to send ping 3 because pong 2 hasn't been received.
        taskFaker.advanceUntil(ns(1000L))
        taskFaker.advanceUntil(ns(1500L))
        client.listener.assertFailure(
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Thu Apr 11 01:59:58 UTC 2024
    - 18.5K bytes
    - Viewed (0)
  8. guava/src/com/google/common/collect/ConcurrentHashMultiset.java

        }
    
        private List<Multiset.Entry<E>> snapshot() {
          List<Multiset.Entry<E>> list = Lists.newArrayListWithExpectedSize(size());
          // Not Iterables.addAll(list, this), because that'll forward right back here.
          Iterators.addAll(list, iterator());
          return list;
        }
      }
    
      /** @serialData the ConcurrentMap of elements and their counts. */
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 22 21:19:52 UTC 2024
    - 20.9K bytes
    - Viewed (0)
  9. hack/lib/util.sh

        trap "${new_cmd}" "${trap_add_name}"
      done
    }
    
    # Opposite of kube::util::ensure-temp-dir()
    kube::util::cleanup-temp-dir() {
      rm -rf "${KUBE_TEMP}"
    }
    
    # Create a temp dir that'll be deleted at the end of this bash session.
    #
    # Vars set:
    #   KUBE_TEMP
    kube::util::ensure-temp-dir() {
      if [[ -z ${KUBE_TEMP-} ]]; then
        KUBE_TEMP=$(mktemp -d 2>/dev/null || mktemp -d -t kubernetes.XXXXXX)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 01 06:07:33 UTC 2024
    - 25.9K bytes
    - Viewed (0)
  10. src/runtime/mgcscavenge.go

    	//
    	// This is reset once a GC cycle ends.
    	backgroundTime atomic.Int64
    }
    
    const (
    	// It doesn't really matter what value we start at, but we can't be zero, because
    	// that'll cause divide-by-zero issues. Pick something conservative which we'll
    	// also use as a fallback.
    	startingScavSleepRatio = 0.001
    
    	// Spend at least 1 ms scavenging, otherwise the corresponding
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 17:48:45 UTC 2024
    - 52.3K bytes
    - Viewed (0)
Back to top