Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 24 for isWrite (0.22 sec)

  1. android/guava-tests/test/com/google/common/math/IntMathTest.java

        tester.testAllPublicStaticMethods(IntMath.class);
      }
    
      @GwtIncompatible // isPrime is GWT-incompatible
      public void testIsPrime() {
        // Defer correctness tests to Long.isPrime
    
        // Check the first 100,000 integers
        for (int i = 0; i < 100000; i++) {
          assertEquals(LongMath.isPrime(i), IntMath.isPrime(i));
        }
    
        // Then check 1000 deterministic pseudo-random int values.
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Feb 07 17:50:39 UTC 2024
    - 24.5K bytes
    - Viewed (0)
  2. pkg/kubelet/server/server_websocket_test.go

    			assert.Len(t, data, binary.Size(p16), "data size")
    			assert.Equal(t, p16, binary.LittleEndian.Uint16(data), "data")
    
    			if test.clientData != "" {
    				println("writing the client data")
    				err := wsWrite(ws, dataChannel, []byte(test.clientData))
    				assert.NoError(t, err, "writing client data")
    			}
    
    			if test.containerData != "" {
    				_, data, err = wsRead(ws)
    				assert.NoError(t, err, "reading container data")
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jun 05 06:08:18 UTC 2023
    - 8.2K bytes
    - Viewed (0)
  3. platforms/jvm/testing-jvm-infrastructure/src/main/java/org/gradle/api/internal/tasks/testing/testng/TestNGTestClassProcessor.java

    import org.gradle.internal.time.Clock;
    import org.gradle.util.internal.CollectionUtils;
    import org.gradle.util.internal.GFileUtils;
    import org.testng.IMethodInstance;
    import org.testng.IMethodInterceptor;
    import org.testng.ISuite;
    import org.testng.ITestContext;
    import org.testng.ITestListener;
    import org.testng.TestNG;
    
    import java.io.File;
    import java.util.ArrayList;
    import java.util.LinkedList;
    import java.util.List;
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 21:25:59 UTC 2024
    - 10.8K bytes
    - Viewed (0)
  4. platforms/jvm/testing-jvm-infrastructure/src/main/java/org/gradle/api/internal/tasks/testing/junit/CategoryFilter.java

        }
    
        @Override
        public boolean shouldRun(final Description description) {
            Class<?> testClass = description.getTestClass();
            verifyCategories(testClass);
            Description parent = description.isSuite() || testClass == null ? null : Description.createSuiteDescription(testClass);
            return shouldRun(description, parent);
        }
    
        private void verifyCategories(Class<?> testClass) {
            if (testClass == null) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 15:59:04 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  5. guava/src/com/google/common/math/IntMath.java

       * factored into smaller positive integers).
       *
       * <p>To test larger numbers, use {@link LongMath#isPrime} or {@link BigInteger#isProbablePrime}.
       *
       * @throws IllegalArgumentException if {@code n} is negative
       * @since 20.0
       */
      @GwtIncompatible // TODO
      public static boolean isPrime(int n) {
        return LongMath.isPrime(n);
      }
    
      private IntMath() {}
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Feb 07 17:50:39 UTC 2024
    - 23.5K bytes
    - Viewed (0)
  6. platforms/jvm/testing-jvm-infrastructure/src/main/java/org/gradle/api/internal/tasks/testing/junit/JUnitTestClassExecutor.java

                // For test suites (including suite-like custom Runners), if the test suite class
                // matches the filter, run the entire suite instead of filtering away its contents.
                if (!runner.getDescription().isSuite() || !matcher.matchesTest(testClassName, null)) {
                    filters.add(new MethodNameFilter(matcher));
                }
            }
    
            if (runner instanceof Filterable) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 7.4K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/math/IntMath.java

       * factored into smaller positive integers).
       *
       * <p>To test larger numbers, use {@link LongMath#isPrime} or {@link BigInteger#isProbablePrime}.
       *
       * @throws IllegalArgumentException if {@code n} is negative
       * @since 20.0
       */
      @GwtIncompatible // TODO
      public static boolean isPrime(int n) {
        return LongMath.isPrime(n);
      }
    
      private IntMath() {}
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Feb 07 17:50:39 UTC 2024
    - 23.5K bytes
    - Viewed (0)
  8. src/crypto/tls/tls_test.go

    		close(connClosed)
    		return nil
    	}
    
    	inWrite := make(chan bool, 1)
    	var errConnClosed = errors.New("conn closed for test")
    	conn.writeFunc = func(p []byte) (n int, err error) {
    		inWrite <- true
    		<-connClosed
    		return 0, errConnClosed
    	}
    
    	closeReturned := make(chan bool, 1)
    	go func() {
    		<-inWrite
    		tconn.Close() // test that this doesn't block forever.
    		closeReturned <- true
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:10:12 UTC 2024
    - 60.5K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/math/LongMath.java

       * <p>To test larger numbers, use {@link BigInteger#isProbablePrime}.
       *
       * @throws IllegalArgumentException if {@code n} is negative
       * @since 20.0
       */
      @GwtIncompatible // TODO
      public static boolean isPrime(long n) {
        if (n < 2) {
          checkNonNegative("n", n);
          return false;
        }
        if (n < 66) {
          // Encode all primes less than 66 into mask without 0 and 1.
          long mask =
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Feb 07 17:50:39 UTC 2024
    - 44.6K bytes
    - Viewed (0)
  10. guava/src/com/google/common/math/LongMath.java

       * <p>To test larger numbers, use {@link BigInteger#isProbablePrime}.
       *
       * @throws IllegalArgumentException if {@code n} is negative
       * @since 20.0
       */
      @GwtIncompatible // TODO
      public static boolean isPrime(long n) {
        if (n < 2) {
          checkNonNegative("n", n);
          return false;
        }
        if (n < 66) {
          // Encode all primes less than 66 into mask without 0 and 1.
          long mask =
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Feb 07 17:50:39 UTC 2024
    - 44.6K bytes
    - Viewed (0)
Back to top