Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 27 for newTargetIterator (0.16 sec)

  1. android/guava-testlib/src/com/google/common/collect/testing/IteratorTester.java

     * set would be sufficient to expose any possible bug. Brute force is simpler.
     *
     * <p>To use this class the concrete subclass must implement the {@link
     * IteratorTester#newTargetIterator()} method. This is because it's impossible to test an Iterator
     * without changing its state, so the tester needs a steady supply of fresh Iterators.
     *
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Feb 21 16:49:06 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  2. android/guava-testlib/test/com/google/common/collect/testing/IteratorTesterTest.java

              protected Iterator<Integer> newTargetIterator() {
                return ImmutableList.of(1, 2).iterator();
              }
            };
        assertFailure(tester);
      }
    
      public void testUnknownOrder() {
        new IteratorTester<Integer>(
            3, MODIFIABLE, newArrayList(1, 2), IteratorTester.KnownOrder.UNKNOWN_ORDER) {
          @Override
          protected Iterator<Integer> newTargetIterator() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jun 11 16:13:05 UTC 2024
    - 10.3K bytes
    - Viewed (0)
  3. guava-testlib/src/com/google/common/collect/testing/google/MultisetIteratorTester.java

            4,
            MODIFIABLE,
            getSubjectGenerator().order(asList(e0(), e1(), e1(), e2())),
            IteratorTester.KnownOrder.KNOWN_ORDER) {
          @Override
          protected Iterator<E> newTargetIterator() {
            return getSubjectGenerator().create(e0(), e1(), e1(), e2()).iterator();
          }
        }.test();
      }
    
      @CollectionFeature.Require(value = SUPPORTS_ITERATOR_REMOVE, absent = KNOWN_ORDER)
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  4. android/guava-testlib/src/com/google/common/collect/testing/google/MultisetIteratorTester.java

            4,
            MODIFIABLE,
            getSubjectGenerator().order(asList(e0(), e1(), e1(), e2())),
            IteratorTester.KnownOrder.KNOWN_ORDER) {
          @Override
          protected Iterator<E> newTargetIterator() {
            return getSubjectGenerator().create(e0(), e1(), e1(), e2()).iterator();
          }
        }.test();
      }
    
      @CollectionFeature.Require(value = SUPPORTS_ITERATOR_REMOVE, absent = KNOWN_ORDER)
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  5. guava-testlib/test/com/google/common/collect/testing/IteratorTesterTest.java

              protected Iterator<Integer> newTargetIterator() {
                return ImmutableList.of(1, 2).iterator();
              }
            };
        assertFailure(tester);
      }
    
      public void testUnknownOrder() {
        new IteratorTester<Integer>(
            3, MODIFIABLE, newArrayList(1, 2), IteratorTester.KnownOrder.UNKNOWN_ORDER) {
          @Override
          protected Iterator<Integer> newTargetIterator() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jun 11 16:13:05 UTC 2024
    - 10.3K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/collect/IteratorsTest.java

          @Override
          protected Iterator<Integer> newTargetIterator() {
            return Iterators.cycle(asList(1, 2));
          }
        }.test();
      }
    
      @GwtIncompatible // slow (~5s)
      public void testConcatNoIteratorsYieldsEmpty() {
        new EmptyIteratorTester() {
          @Override
          protected Iterator<Integer> newTargetIterator() {
            return Iterators.concat();
          }
        }.test();
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 54.1K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/collect/IteratorsTest.java

          @Override
          protected Iterator<Integer> newTargetIterator() {
            return Iterators.cycle(asList(1, 2));
          }
        }.test();
      }
    
      @GwtIncompatible // slow (~5s)
      public void testConcatNoIteratorsYieldsEmpty() {
        new EmptyIteratorTester() {
          @Override
          protected Iterator<Integer> newTargetIterator() {
            return Iterators.concat();
          }
        }.test();
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 54.1K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/collect/LinkedHashMultimapTest.java

            newLinkedHashSet(asList(2, 3, 4, 7, 8)),
            IteratorTester.KnownOrder.KNOWN_ORDER) {
          private @Nullable Multimap<String, Integer> multimap;
    
          @Override
          protected Iterator<Integer> newTargetIterator() {
            multimap = LinkedHashMultimap.create();
            multimap.putAll("foo", asList(2, 3, 4));
            multimap.putAll("bar", asList(5, 6));
            multimap.putAll("foo", asList(7, 8));
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 18.6K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/collect/PeekingIteratorTest.java

          super(master.size() + 3, MODIFIABLE, master, IteratorTester.KnownOrder.KNOWN_ORDER);
          this.master = master;
        }
    
        @Override
        protected Iterator<T> newTargetIterator() {
          // make copy from master to verify later
          targetList = Lists.newArrayList(master);
          Iterator<T> iterator = targetList.iterator();
          return Iterators.peekingIterator(iterator);
        }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 8.6K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/collect/LinkedListMultimapTest.java

            private @Nullable LinkedListMultimap<String, Integer> multimap;
    
            @Override
            protected ListIterator<Entry<String, Integer>> newTargetIterator() {
              multimap = create();
              multimap.putAll("foo", asList(2, 3));
              multimap.putAll("bar", asList(4, 5));
              multimap.put("foo", 6);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 18K bytes
    - Viewed (0)
Back to top