Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 31 - 40 of 234 for isPull (0.29 seconds)

  1. android/guava-tests/test/com/google/common/cache/LocalLoadingCacheTest.java

        assertThat(map.containsKey(one)).isFalse();
        assertThat(map.containsValue(one)).isFalse();
        assertThat(map.putIfAbsent(two, three)).isNull();
        assertThat(map.remove(two)).isSameInstanceAs(three);
        assertThat(map.put(three, one)).isNull();
        assertThat(map.put(one, two)).isNull();
    
        assertThat(map).containsEntry(three, one);
        assertThat(map).containsEntry(one, two);
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Mar 18 18:06:14 GMT 2026
    - 13.1K bytes
    - Click Count (0)
  2. guava-tests/test/com/google/common/cache/LocalLoadingCacheTest.java

        assertThat(map.containsKey(one)).isFalse();
        assertThat(map.containsValue(one)).isFalse();
        assertThat(map.putIfAbsent(two, three)).isNull();
        assertThat(map.remove(two)).isSameInstanceAs(three);
        assertThat(map.put(three, one)).isNull();
        assertThat(map.put(one, two)).isNull();
    
        assertThat(map).containsEntry(three, one);
        assertThat(map).containsEntry(one, two);
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Mar 18 18:06:14 GMT 2026
    - 13.1K bytes
    - Click Count (0)
  3. android/guava-tests/test/com/google/common/cache/CacheBuilderGwtTest.java

        fakeTicker.advance(2, MILLISECONDS);
        assertThat(cache.getIfPresent(10)).isNull();
        assertThat(cache.getIfPresent(20)).isNull();
        assertThat(cache.getIfPresent(4)).isNull();
    
        cache.put(10, 20);
        assertThat(cache.getIfPresent(10)).isEqualTo(20);
    
        fakeTicker.advance(1000, MILLISECONDS);
        assertThat(cache.getIfPresent(10)).isNull();
      }
    
      @Test
      public void expireAfterWriteAndAccess() {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Mar 18 18:06:14 GMT 2026
    - 15K bytes
    - Click Count (0)
  4. android-test/src/test/kotlin/okhttp/android/test/BaseOkHttpClientUnitTest.kt

     * limitations under the License.
     *
     */
    package okhttp.android.test
    
    import assertk.assertThat
    import assertk.assertions.isEqualTo
    import assertk.assertions.isNotNull
    import assertk.assertions.isNull
    import java.net.InetAddress
    import java.net.UnknownHostException
    import okhttp3.Cache
    import okhttp3.HttpUrl.Companion.toHttpUrl
    import okhttp3.OkHttpClient
    import okhttp3.Request
    import okio.Path.Companion.toPath
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue Jul 22 20:03:31 GMT 2025
    - 2.3K bytes
    - Click Count (0)
  5. internal/ringbuffer/ring_buffer.go

    		copy(buf[c1:], r.buf[0:c2])
    	}
    
    	return buf
    }
    
    // IsFull returns this ringbuffer is full.
    func (r *RingBuffer) IsFull() bool {
    	r.mu.Lock()
    	defer r.mu.Unlock()
    
    	return r.isFull
    }
    
    // IsEmpty returns this ringbuffer is empty.
    func (r *RingBuffer) IsEmpty() bool {
    	r.mu.Lock()
    	defer r.mu.Unlock()
    
    	return !r.isFull && r.w == r.r
    }
    
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Sun Sep 28 20:59:21 GMT 2025
    - 13.3K bytes
    - Click Count (0)
  6. guava-tests/test/com/google/common/cache/CacheBuilderGwtTest.java

        fakeTicker.advance(2, MILLISECONDS);
        assertThat(cache.getIfPresent(10)).isNull();
        assertThat(cache.getIfPresent(20)).isNull();
        assertThat(cache.getIfPresent(4)).isNull();
    
        cache.put(10, 20);
        assertThat(cache.getIfPresent(10)).isEqualTo(20);
    
        fakeTicker.advance(1000, MILLISECONDS);
        assertThat(cache.getIfPresent(10)).isNull();
      }
    
      @Test
      public void expireAfterWriteAndAccess() {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Mar 18 18:06:14 GMT 2026
    - 15K bytes
    - Click Count (0)
  7. android/guava-tests/test/com/google/common/collect/MapsTest.java

        Collections.addAll(strings, "one", "two", "three");
        SortedMap<String, Integer> map = Maps.asMap(strings, LENGTH_FUNCTION);
        assertThat(map.comparator()).isNull();
        assertEquals(ImmutableSortedMap.of("one", 3, "two", 3, "three", 5), map);
        assertThat(map.get("four")).isNull();
        strings.add("four");
        assertEquals(ImmutableSortedMap.of("one", 3, "two", 3, "three", 5, "four", 4), map);
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Mar 13 13:01:07 GMT 2026
    - 63.2K bytes
    - Click Count (0)
  8. okhttp/src/jvmTest/kotlin/okhttp3/HttpUrlTest.kt

        assertThat(base.newBuilder("")!!.build()).isEqualTo(parse("http://host/a/b"))
        assertThat(base.newBuilder("ftp://b")).isNull()
        assertThat(base.newBuilder("ht+tp://b")).isNull()
        assertThat(base.newBuilder("ht-tp://b")).isNull()
        assertThat(base.newBuilder("ht.tp://b")).isNull()
      }
    
      @Test
      fun redactedUrl() {
        val baseWithPasswordAndUsername = parse("http://username:password@host/a/b#fragment")
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Mon Aug 04 07:38:48 GMT 2025
    - 69.9K bytes
    - Click Count (0)
  9. src/test/java/jcifs/smb/SmbTransportInternalTest.java

            String nullName = null;
            doThrow(new jcifs.CIFSException("invalid dfs name")).when(transport).getDfsReferrals(eq(ctx), isNull(), any(), any(), anyInt());
    
            assertThrows(jcifs.CIFSException.class, () -> transport.getDfsReferrals(ctx, nullName, "h", "d", 1));
            verify(transport).getDfsReferrals(eq(ctx), isNull(), eq("h"), eq("d"), eq(1));
        }
    
        // Signing modes: optional vs enforced
        @Test
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 07:14:38 GMT 2025
    - 12.1K bytes
    - Click Count (0)
  10. okhttp/src/jvmTest/kotlin/okhttp3/CallTagsTest.kt

        assertThat(call.tag(Boolean::class)).isNull()
        assertThat(call.tag(Any::class)).isNull()
    
        // Check the Java APIs too.
        assertThat(call.tag(String::class.java)).isEqualTo("hello")
        assertThat(call.tag(Integer::class.java)).isEqualTo(5)
        assertThat(call.tag(Boolean::class.java)).isNull()
        assertThat(call.tag(Any::class.java)).isNull()
      }
    
      @Test
      fun tagsCanBeComputed() {
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Sun Oct 26 14:54:46 GMT 2025
    - 2.8K bytes
    - Click Count (0)
Back to Top