Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 90 of 111 for isNull (0.08 sec)

  1. guava-tests/test/com/google/common/graph/GraphsTest.java

        assertThat(transpose(transpose)).isSameInstanceAs(directedGraph);
        AbstractGraphTest.validateGraph(transpose.asGraph());
    
        assertThat(transpose.edgeValueOrDefault(N1, N2, null)).isNull();
        for (Integer node : directedGraph.nodes()) {
          assertThat(directedGraph.inDegree(node)).isSameInstanceAs(transpose.outDegree(node));
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 02 18:21:29 UTC 2024
    - 24.7K bytes
    - Viewed (0)
  2. okhttp/src/test/java/okhttp3/EventListenerTest.kt

    import assertk.assertions.doesNotContain
    import assertk.assertions.isEqualTo
    import assertk.assertions.isIn
    import assertk.assertions.isInstanceOf
    import assertk.assertions.isNotNull
    import assertk.assertions.isNull
    import assertk.assertions.isSameAs
    import java.io.File
    import java.io.IOException
    import java.io.InterruptedIOException
    import java.net.HttpURLConnection
    import java.net.InetAddress
    import java.net.InetSocketAddress
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Jan 20 10:30:28 UTC 2024
    - 56.9K bytes
    - Viewed (2)
  3. cmd/site-replication.go

    	for id, rl := range rMap {
    		if !rl.Expiration.IsNull() || !rl.NoncurrentVersionExpiration.IsNull() {
    			if _, ok := newRMap[id]; !ok {
    				// if rule getting removed was pure expiry rule (may be got to this site
    				// as part of replication of expiry rules), remove it. Otherwise remove
    				// only the expiry part of it
    				if rl.Transition.IsNull() && rl.NoncurrentVersionTransition.IsNull() {
    					delete(rMap, id)
    				} else {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Aug 15 12:04:40 UTC 2024
    - 185.1K bytes
    - Viewed (0)
  4. okhttp/src/test/java/okhttp3/internal/http2/HpackTest.kt

     * limitations under the License.
     */
    package okhttp3.internal.http2
    
    import assertk.assertThat
    import assertk.assertions.containsExactly
    import assertk.assertions.isEqualTo
    import assertk.assertions.isNull
    import java.io.IOException
    import java.util.Arrays
    import kotlin.test.assertFailsWith
    import okhttp3.TestUtil.headerEntries
    import okio.Buffer
    import okio.ByteString
    import okio.ByteString.Companion.decodeHex
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 38.2K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/base/PreconditionsTest.java

          Throwable throwable, Class<? extends Throwable> clazz, Object[] params) {
        assertThat(throwable).isInstanceOf(clazz);
        if (params.length == 1) {
          assertThat(throwable).hasMessageThat().isNull();
        } else if (params.length == 2) {
          assertThat(throwable).hasMessageThat().isEmpty();
        } else {
          assertThat(throwable)
              .hasMessageThat()
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Sep 17 18:14:12 UTC 2024
    - 19K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/graph/AbstractNetworkTest.java

            Set<E> edgesConnecting = sanityCheckSet(network.edgesConnecting(node, otherNode));
            switch (edgesConnecting.size()) {
              case 0:
                assertThat(network.edgeConnectingOrNull(node, otherNode)).isNull();
                assertThat(network.hasEdgeConnecting(node, otherNode)).isFalse();
                break;
              case 1:
                assertThat(network.edgeConnectingOrNull(node, otherNode))
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Jan 22 17:29:38 UTC 2024
    - 32.7K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/collect/ImmutableMapTest.java

          T key = keysAndValues[i];
          T value = keysAndValues[i + 1];
          T old = map.put(key, value);
          assertWithMessage("Key %s set to %s and %s", key, value, old).that(old).isNull();
        }
        return map;
      }
    
      private static <T extends @Nullable Object> Entry<T, T> entry(T key, T value) {
        return new AbstractMap.SimpleImmutableEntry<>(key, value);
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 41.1K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/collect/ImmutableMapTest.java

          T key = keysAndValues[i];
          T value = keysAndValues[i + 1];
          T old = map.put(key, value);
          assertWithMessage("Key %s set to %s and %s", key, value, old).that(old).isNull();
        }
        return map;
      }
    
      private static <T extends @Nullable Object> Entry<T, T> entry(T key, T value) {
        return new AbstractMap.SimpleImmutableEntry<>(key, value);
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 36.6K bytes
    - Viewed (0)
  9. internal/ringbuffer/ring_buffer_test.go

    	}
    	// check empty or full
    	if rb.IsEmpty() {
    		t.Fatalf("expect IsEmpty is false but got true")
    	}
    	if rb.IsFull() {
    		t.Fatalf("expect IsFull is false but got true")
    	}
    
    	// write to, isFull
    	err = rb.WriteByte('b')
    	if err != nil {
    		t.Fatalf("WriteByte failed: %v", err)
    	}
    	if rb.Length() != 2 {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed May 15 00:11:04 UTC 2024
    - 26.8K bytes
    - Viewed (0)
  10. 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
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed May 15 00:11:04 UTC 2024
    - 13.3K bytes
    - Viewed (0)
Back to top