Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for TestPull (0.22 sec)

  1. src/iter/pull_test.go

    			}
    		}
    	}
    }
    
    func squares(n int) Seq2[int, int64] {
    	return func(yield func(int, int64) bool) {
    		for i := range n {
    			if !yield(i, int64(i)*int64(i)) {
    				break
    			}
    		}
    	}
    }
    
    func TestPull(t *testing.T) {
    	for end := 0; end <= 3; end++ {
    		t.Run(fmt.Sprint(end), func(t *testing.T) {
    			ng := stableNumGoroutine()
    			wantNG := func(want int) {
    				if xg := runtime.NumGoroutine() - ng; xg != want {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 19:09:28 UTC 2024
    - 10.2K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/hash/Crc32cHashFunctionTest.java

        assertCrc(0x8a9136aa, zeros);
      }
    
      public void testZeros100() {
        // Test 100 byte array of 0x00.
        byte[] zeros = new byte[100];
        assertCrc(0x07cb9ff6, zeros);
      }
    
      public void testFull() {
        // Test 32 byte array of 0xFF.
        byte[] fulls = new byte[32];
        Arrays.fill(fulls, (byte) 0xFF);
        assertCrc(0x62a8ab43, fulls);
      }
    
      public void testFull100() {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Dec 23 18:30:33 UTC 2020
    - 6.5K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/reflect/MutableTypeToInstanceMapTest.java

        assertEquals(7, (int) newValue);
        assertEquals(7, (int) map.getInstance(TypeToken.of(Integer.class)));
    
        // Won't compile: map.putInstance(Double.class, new Long(42));
      }
    
      public void testNull() {
        assertThrows(
            NullPointerException.class,
            () -> map.putInstance((TypeToken<Integer>) null, Integer.valueOf(1)));
        map.putInstance(Integer.class, null);
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 22 17:15:24 UTC 2024
    - 7.9K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/util/concurrent/StripedTest.java

            .build();
      }
    
      private static Iterable<Striped<?>> allImplementations() {
        return concat(strongImplementations(), weakImplementations());
      }
    
      public void testNull() throws Exception {
        for (Striped<?> striped : allImplementations()) {
          new NullPointerTester().testAllPublicInstanceMethods(striped);
        }
      }
    
      public void testSizes() {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Feb 09 22:57:07 UTC 2022
    - 8.4K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/util/concurrent/StripedTest.java

            .build();
      }
    
      private static Iterable<Striped<?>> allImplementations() {
        return concat(strongImplementations(), weakImplementations());
      }
    
      public void testNull() throws Exception {
        for (Striped<?> striped : allImplementations()) {
          new NullPointerTester().testAllPublicInstanceMethods(striped);
        }
      }
    
      public void testSizes() {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Feb 09 22:57:07 UTC 2022
    - 8.4K bytes
    - Viewed (0)
  6. guava-testlib/src/com/google/common/testing/AbstractPackageSanityTests.java

      /* The names of the expected method that tests null checks. */
      private static final ImmutableList<String> NULL_TEST_METHOD_NAMES =
          ImmutableList.of(
              "testNulls", "testNull",
              "testNullPointers", "testNullPointer",
              "testNullPointerExceptions", "testNullPointerException");
    
      /* The names of the expected method that tests serializable. */
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Jun 11 16:13:05 UTC 2024
    - 17.4K bytes
    - Viewed (0)
  7. android/guava-testlib/src/com/google/common/testing/AbstractPackageSanityTests.java

      /* The names of the expected method that tests null checks. */
      private static final ImmutableList<String> NULL_TEST_METHOD_NAMES =
          ImmutableList.of(
              "testNulls", "testNull",
              "testNullPointers", "testNullPointer",
              "testNullPointerExceptions", "testNullPointerException");
    
      /* The names of the expected method that tests serializable. */
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Jun 11 16:13:05 UTC 2024
    - 17.4K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/util/concurrent/UninterruptiblesTest.java

              public void tearDown() {
                Thread.interrupted();
              }
            });
      }
    
      @Override
      protected void tearDown() {
        tearDownStack.runTearDown();
      }
    
      public void testNull() throws Exception {
        new NullPointerTester()
            .setDefault(CountDownLatch.class, new CountDownLatch(0))
            .setDefault(Semaphore.class, new Semaphore(999))
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Jun 10 16:06:39 UTC 2024
    - 31.7K bytes
    - Viewed (0)
  9. src/syscall/js/js_test.go

    	}
    	if js.Undefined().IsNull() {
    		t.Errorf("undefined is null")
    	}
    	if dummys.Set("test", js.Undefined()); !dummys.Get("test").IsUndefined() {
    		t.Errorf("could not set undefined")
    	}
    }
    
    func TestNull(t *testing.T) {
    	if !js.Null().IsNull() {
    		t.Errorf("null is not null")
    	}
    	if !js.Null().Equal(js.Null()) {
    		t.Errorf("null is not equal to null")
    	}
    	if dummys.IsNull() {
    		t.Errorf("object is null")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 19 14:35:26 UTC 2024
    - 17.7K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/util/concurrent/UninterruptiblesTest.java

              public void tearDown() {
                Thread.interrupted();
              }
            });
      }
    
      @Override
      protected void tearDown() {
        tearDownStack.runTearDown();
      }
    
      public void testNull() throws Exception {
        new NullPointerTester()
            .setDefault(CountDownLatch.class, new CountDownLatch(0))
            .setDefault(Semaphore.class, new Semaphore(999))
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Feb 09 22:57:07 UTC 2022
    - 30.9K bytes
    - Viewed (0)
Back to top