Search Options

Results per page
Sort
Preferred Languages
Advance

Results 231 - 240 of 2,088 for checks (0.06 sec)

  1. android/guava-tests/test/com/google/common/util/concurrent/CycleDetectingLockFactoryTest.java

      }
    
      private enum OtherOrder {
        FIRST,
        SECOND,
        THIRD;
      }
    
      // Given a sequence of lock acquisition descriptions
      // (e.g. "LockA -> LockB", "LockB -> LockC", ...)
      // Checks that the exception.getMessage() matches a regex of the form:
      // "LockA -> LockB \b.*\b LockB -> LockC \b.*\b LockC -> LockA"
      private void checkMessage(IllegalStateException exception, String... expectedLockCycle) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 22:10:29 UTC 2024
    - 16.1K bytes
    - Viewed (0)
  2. guava/src/com/google/common/reflect/Types.java

          @CheckForNull Type ownerType, Class<?> rawType, Type... arguments) {
        if (ownerType == null) {
          return newParameterizedType(rawType, arguments);
        }
        // ParameterizedTypeImpl constructor already checks, but we want to throw NPE before IAE
        checkNotNull(arguments);
        checkArgument(rawType.getEnclosingClass() != null, "Owner type for unenclosed %s", rawType);
        return new ParameterizedTypeImpl(ownerType, rawType, arguments);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 21 14:28:19 UTC 2024
    - 23K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/math/LongMathTest.java

          accum /= i + 1;
        }
        return accum;
      }
    
      @GwtIncompatible // java.math.BigInteger
      public void testIsPowerOfTwo() {
        for (long x : ALL_LONG_CANDIDATES) {
          // Checks for a single bit set.
          BigInteger bigX = BigInteger.valueOf(x);
          boolean expected = (bigX.signum() > 0) && (bigX.bitCount() == 1);
          assertEquals(expected, LongMath.isPowerOfTwo(x));
        }
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 15:00:32 UTC 2024
    - 30.6K bytes
    - Viewed (0)
  4. tensorflow/c/eager/dlpack.cc

    // TFE_NewTensorHandleFromDeviceMemory.
    void DeallocatorWrapperFunc(void* data, size_t len, void* dlmt_vptr) {
      TFE_CallDLManagedTensorDeleter(dlmt_vptr);
    }
    
    // Checks whether the stride array matches the layout of compact, row-majored
    // data.
    bool IsValidStrideCompactRowMajorData(int64_t* shape_arr, int64_t* stride_arr,
                                          int ndim) {
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Sat Oct 12 05:11:17 UTC 2024
    - 12.9K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/Cut.java

           * No code ever sees this bogus value for `endpoint`: This class overrides both methods that
           * use the `endpoint` field, compareTo() and endpoint(). Additionally, the main implementation
           * of Cut.compareTo checks for belowAll before reading accessing `endpoint` on another Cut
           * instance.
           */
          super("");
        }
    
        @Override
        Comparable<?> endpoint() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 16 17:21:56 UTC 2024
    - 12.2K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/graph/AbstractStandardDirectedNetworkTest.java

            assertThrows(
                IllegalArgumentException.class, () -> networkAsMutableNetwork.addEdge(N1, N1, E11));
        assertThat(e).hasMessageThat().contains(ERROR_SELF_LOOP);
      }
    
      /**
       * This test checks an implementation dependent feature. It tests that the method {@code addEdge}
       * will silently add the missing nodes to the graph, then add the edge connecting them. We are not
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 02 18:21:29 UTC 2024
    - 20.8K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/graph/AbstractStandardDirectedNetworkTest.java

            assertThrows(
                IllegalArgumentException.class, () -> networkAsMutableNetwork.addEdge(N1, N1, E11));
        assertThat(e).hasMessageThat().contains(ERROR_SELF_LOOP);
      }
    
      /**
       * This test checks an implementation dependent feature. It tests that the method {@code addEdge}
       * will silently add the missing nodes to the graph, then add the edge connecting them. We are not
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 02 18:21:29 UTC 2024
    - 21.2K bytes
    - Viewed (0)
  8. cni/pkg/nodeagent/informers.go

    			// - kubernetes will (weirdly) issue a new status to the pod with no IP on termination, meaning
    			// our check of `pod.status` will fail for (some) termination events.
    			//
    			// We will get subsequent events that append a new status with the IP put back, but it's simpler
    			// and safer to just check the old pod status for the IP.
    			err := s.dataplane.RemovePodFromMesh(s.ctx, oldPod, true)
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Wed Oct 09 16:05:45 UTC 2024
    - 11.7K bytes
    - Viewed (0)
  9. guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ImmutableList.java

            return of(element);
          default:
            return new RegularImmutableList<E>(ImmutableList.<E>nullCheckedList(elements));
        }
      }
    
      // Factory method that skips the null checks.  Used only when the elements
      // are guaranteed to be non-null.
      static <E> ImmutableList<E> unsafeDelegateList(List<? extends E> list) {
        switch (list.size()) {
          case 0:
            return of();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Jun 14 22:14:46 UTC 2024
    - 11.1K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/io/ByteSource.java

       */
      public ByteSource slice(long offset, long length) {
        return new SlicedByteSource(offset, length);
      }
    
      /**
       * Returns whether the source has zero bytes. The default implementation first checks {@link
       * #sizeIfKnown}, returning true if it's known to be zero and false if it's known to be non-zero.
       * If the size is not known, it falls back to opening a stream and checking for EOF.
       *
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:26:48 UTC 2024
    - 26.2K bytes
    - Viewed (0)
Back to top