Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for testSizes (0.13 sec)

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

      }
    
      public void testNull() throws Exception {
        for (Striped<?> striped : allImplementations()) {
          new NullPointerTester().testAllPublicInstanceMethods(striped);
        }
      }
    
      public void testSizes() {
        // not bothering testing all variations, since we know they share implementations
        assertThat(Striped.lock(100).size()).isAtLeast(100);
        assertTrue(Striped.lock(256).size() == 256);
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Oct 28 18:19:59 UTC 2025
    - 8.5K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/util/concurrent/StripedTest.java

      }
    
      public void testNull() throws Exception {
        for (Striped<?> striped : allImplementations()) {
          new NullPointerTester().testAllPublicInstanceMethods(striped);
        }
      }
    
      public void testSizes() {
        // not bothering testing all variations, since we know they share implementations
        assertThat(Striped.lock(100).size()).isAtLeast(100);
        assertTrue(Striped.lock(256).size() == 256);
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Oct 28 18:19:59 UTC 2025
    - 8.5K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/primitives/UnsignedLongTest.java

            UnsignedLong unsignedSub = aUnsigned.minus(bUnsigned);
            assertThat(unsignedSub.longValue()).isEqualTo(expected);
          }
        }
      }
    
      public void testTimes() {
        for (long a : TEST_LONGS) {
          for (long b : TEST_LONGS) {
            UnsignedLong aUnsigned = UnsignedLong.fromLongBits(a);
            UnsignedLong bUnsigned = UnsignedLong.fromLongBits(b);
            long expected =
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Dec 11 20:45:32 UTC 2025
    - 10.4K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/collect/EmptyImmutableTableTest.java

            .addEqualityGroup(ArrayTable.create(ImmutableSet.of('A'), ImmutableSet.of(1)))
            .testEquals();
      }
    
      public void testToString() {
        assertEquals("{}", INSTANCE.toString());
      }
    
      public void testSize() {
        assertEquals(0, INSTANCE.size());
      }
    
      public void testGet() {
        assertThat(INSTANCE.get('a', 1)).isNull();
      }
    
      public void testIsEmpty() {
        assertTrue(INSTANCE.isEmpty());
      }
    
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Oct 28 16:03:47 UTC 2025
    - 3.3K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/collect/SingletonImmutableTableTest.java

        assertThat(testTable.get('A', 1)).isNull();
        assertThat(testTable.get('A', 2)).isNull();
      }
    
      public void testIsEmpty() {
        assertFalse(testTable.isEmpty());
      }
    
      public void testSize() {
        assertEquals(1, testTable.size());
      }
    
      public void testValues() {
        assertThat(testTable.values()).contains("blah");
      }
    
      @Override
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Oct 28 16:03:47 UTC 2025
    - 4K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/collect/RegularImmutableTableTest.java

        for (ImmutableTable<Character, Integer, String> testInstance : getTestInstances()) {
          assertThat(testInstance.values()).containsExactly("foo", "bar", "baz").inOrder();
        }
      }
    
      public void testSize() {
        for (ImmutableTable<Character, Integer, String> testInstance : getTestInstances()) {
          assertEquals(3, testInstance.size());
        }
      }
    
      public void testContainsValue() {
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Oct 28 16:03:47 UTC 2025
    - 6.3K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/collect/AbstractTableReadTest.java

      }
    
      public void testIsEmpty() {
        assertTrue(table.isEmpty());
        table = create("foo", 1, 'a', "bar", 1, 'b', "foo", 3, 'c');
        assertFalse(table.isEmpty());
      }
    
      public void testSize() {
        assertSize(0);
        table = create("foo", 1, 'a', "bar", 1, 'b', "foo", 3, 'c');
        assertSize(3);
      }
    
      public void testEquals() {
        table = create("foo", 1, 'a', "bar", 1, 'b', "foo", 3, 'c');
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Oct 28 16:03:47 UTC 2025
    - 6.6K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/primitives/UnsignedLongTest.java

            UnsignedLong unsignedSub = aUnsigned.minus(bUnsigned);
            assertThat(unsignedSub.longValue()).isEqualTo(expected);
          }
        }
      }
    
      public void testTimes() {
        for (long a : TEST_LONGS) {
          for (long b : TEST_LONGS) {
            UnsignedLong aUnsigned = UnsignedLong.fromLongBits(a);
            UnsignedLong bUnsigned = UnsignedLong.fromLongBits(b);
            long expected =
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Dec 11 20:45:32 UTC 2025
    - 10.4K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/collect/AbstractTableReadTest.java

      }
    
      public void testIsEmpty() {
        assertTrue(table.isEmpty());
        table = create("foo", 1, 'a', "bar", 1, 'b', "foo", 3, 'c');
        assertFalse(table.isEmpty());
      }
    
      public void testSize() {
        assertSize(0);
        table = create("foo", 1, 'a', "bar", 1, 'b', "foo", 3, 'c');
        assertSize(3);
      }
    
      public void testEquals() {
        table = create("foo", 1, 'a', "bar", 1, 'b', "foo", 3, 'c');
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Oct 28 16:03:47 UTC 2025
    - 6.6K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/collect/IteratorsTest.java

        assertThrows(IllegalStateException.class, () -> iterator.remove());
      }
    
      public void testSize0() {
        Iterator<String> iterator = emptyIterator();
        assertEquals(0, Iterators.size(iterator));
      }
    
      public void testSize1() {
        Iterator<Integer> iterator = singleton(0).iterator();
        assertEquals(1, Iterators.size(iterator));
      }
    
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Oct 28 18:44:53 UTC 2025
    - 56.7K bytes
    - Viewed (0)
Back to top