Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 106 for is_full (0.2 sec)

  1. internal/store/batch.go

    func (b *Batch[K, T]) Len() int {
    	b.Lock()
    	defer b.Unlock()
    
    	return len(b.keys)
    }
    
    // IsFull checks if the batch is full or not
    func (b *Batch[K, T]) IsFull() bool {
    	b.Lock()
    	defer b.Unlock()
    
    	return b.isFull()
    }
    
    func (b *Batch[K, T]) isFull() bool {
    	return len(b.items) >= int(b.limit)
    }
    
    // NewBatch creates a new batch
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sat Oct 07 15:07:38 GMT 2023
    - 2.5K bytes
    - Viewed (0)
  2. okhttp/src/test/java/okhttp3/internal/idn/StringprepTest.kt

        assertThat(stringPrep("\uf8ff")).isNull()
        assertThat(stringPrep("\udbff\udffd")).isNull() // Note that this is one code point.
      }
    
      @Test fun prohibitionNonCharacter() {
        assertThat(stringPrep("\ufdd0")).isNull()
        assertThat(stringPrep("\ufffe")).isNull()
        assertThat(stringPrep("\udbff\udffe")).isNull()
      }
    
      /**
       * Because our API always transcodes through UTF-8, and that transcoding replaces unpaired
    Plain Text
    - Registered: Fri Mar 29 11:42:11 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 4.7K bytes
    - Viewed (0)
  3. okhttp/src/test/java/okhttp3/RequestCommonTest.kt

            .url("https://square.com")
            .build()
        assertThat(request.tag<Any>()).isNull()
        assertThat(request.tag(Any::class)).isNull()
        assertThat(request.tag(String::class)).isNull()
    
        // Alternate access APIs also work.
        assertThat(request.tag<String>()).isNull()
        assertThat(request.tag(String::class)).isNull()
      }
    
      @Test
      fun defaultTag() {
        val tag = "1234"
        val request =
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 10.7K bytes
    - Viewed (0)
  4. okhttp/src/test/java/okhttp3/internal/publicsuffix/PublicSuffixDatabaseTest.kt

        assertThat(publicSuffixDatabase.getEffectiveTldPlusOne("aaa")).isNull()
        assertThat(publicSuffixDatabase.getEffectiveTldPlusOne("ggg")).isNull()
        assertThat(publicSuffixDatabase.getEffectiveTldPlusOne("ccc")).isNull()
        assertThat(publicSuffixDatabase.getEffectiveTldPlusOne("eee")).isNull()
      }
    
      @Test fun exceptionRule() {
        val exception =
          Buffer()
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 11.3K bytes
    - Viewed (0)
  5. okhttp/src/test/java/okhttp3/CookieTest.kt

        assertThat(parse(url, "a\u0000b=cd")).isNull()
        assertThat(parse(url, "ab=c\u0000d")).isNull()
        assertThat(parse(url, "a\u0001b=cd")).isNull()
        assertThat(parse(url, "ab=c\u0001d")).isNull()
        assertThat(parse(url, "a\u0009b=cd")).isNull()
        assertThat(parse(url, "ab=c\u0009d")).isNull()
        assertThat(parse(url, "a\u001fb=cd")).isNull()
        assertThat(parse(url, "ab=c\u001fd")).isNull()
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 24.3K bytes
    - Viewed (0)
  6. okhttp/src/test/java/okhttp3/internal/cache/DiskLruCacheTest.kt

        taskFaker.runNextTask()
    
        // Don't allow edits under any circumstances.
        assertThat(cache.edit("a")).isNull()
        assertThat(cache.edit("c")).isNull()
        cache["a"]!!.use {
          assertThat(it.edit()).isNull()
        }
      }
    
      @ParameterizedTest
      @ArgumentsSource(FileSystemParamProvider::class)
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Apr 15 14:55:09 GMT 2024
    - 75.8K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/graph/ValueGraphTest.java

        assertThat(graph.removeEdge(1, 2)).isEqualTo("valueA");
        assertThat(graph.removeEdge(1, 2)).isNull();
        assertThat(graph.removeEdge(2, 1)).isEqualTo("valueB");
        assertThat(graph.removeEdge(2, 1)).isNull();
        assertThat(graph.removeEdge(2, 3)).isEqualTo("valueC");
        assertThat(graph.removeEdge(2, 3)).isNull();
      }
    
      @Test
      public void removeEdge_undirected() {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 17.4K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/graph/ValueGraphTest.java

        assertThat(graph.edgeValue(2, 1).orElse(DEFAULT)).isEqualTo(DEFAULT);
        assertThat(graph.edgeValueOrDefault(1, 2, null)).isNull();
        assertThat(graph.edgeValueOrDefault(2, 1, null)).isNull();
        assertThat(graph.edgeValue(1, 2).orElse(null)).isNull();
        assertThat(graph.edgeValue(2, 1).orElse(null)).isNull();
    
        graph.putEdgeValue(1, 2, "valueA");
        graph.putEdgeValue(2, 1, "valueB");
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Feb 06 18:35:19 GMT 2024
    - 20K bytes
    - Viewed (0)
  9. okhttp/src/test/java/okhttp3/internal/http/HttpDateTest.kt

        assertThat("Thu, 01 Jan 1970 00:00:00".toHttpDateOrNull()).isNull()
        // Missing seconds treated as bad.
        assertThat("Thu, 01 Jan 1970 00:00 GMT".toHttpDateOrNull()).isNull()
        // Extra spaces treated as bad.
        assertThat("Thu,  01 Jan 1970 00:00 GMT".toHttpDateOrNull()).isNull()
        // Missing leading zero treated as bad.
        assertThat("Thu, 1 Jan 1970 00:00 GMT".toHttpDateOrNull()).isNull()
    
        // RFC 850, obsoleted by RFC 1036 with any TZ.
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 3.9K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/base/PredicatesTest.java

      }
    
      /*
       * Tests for Predicates.isNull()
       */
    
      public void testIsNull_apply() {
        Predicate<@Nullable Integer> isNull = Predicates.isNull();
        assertTrue(isNull.apply(null));
        assertFalse(isNull.apply(1));
      }
    
      public void testIsNull_equality() {
        new EqualsTester()
            .addEqualityGroup(Predicates.isNull(), Predicates.isNull())
            .addEqualityGroup(Predicates.notNull())
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 17:15:24 GMT 2024
    - 32.4K bytes
    - Viewed (0)
Back to top