/libcore/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/util/stream/ |
IntSliceOpTest.java | 71 exerciseOps(EMPTY_INT_ARRAY, s -> s.skip(0), EMPTY_INT_ARRAY); 72 exerciseOps(EMPTY_INT_ARRAY, s -> s.skip(10), EMPTY_INT_ARRAY); 74 exerciseOps(IntStream.range(1, 2).toArray(), s -> s.skip(0), IntStream.range(1, 2).toArray()); 75 exerciseOps(IntStream.range(1, 2).toArray(), s -> s.skip(1), EMPTY_INT_ARRAY); 76 exerciseOps(IntStream.range(1, 101).toArray(), s -> s.skip(0), IntStream.range(1, 101).toArray()); 77 exerciseOps(IntStream.range(1, 101).toArray(), s -> s.skip(10), IntStream.range(11, 101).toArray()); 78 exerciseOps(IntStream.range(1, 101).toArray(), s -> s.skip(100), EMPTY_INT_ARRAY); 79 exerciseOps(IntStream.range(1, 101).toArray(), s -> s.skip(200), EMPTY_INT_ARRAY); 93 exerciseOps(EMPTY_INT_ARRAY, s -> s.limit(0), EMPTY_INT_ARRAY); 94 exerciseOps(EMPTY_INT_ARRAY, s -> s.limit(10), EMPTY_INT_ARRAY) [all...] |
FilterOpTest.java | 59 exerciseOps(countTo(1000), s -> s.filter(pTrue), countTo(1000)); 60 exerciseOps(countTo(1000), s -> s.filter(pFalse), countTo(0)); 61 exerciseOps(countTo(1000), s -> s.filter(e -> e > 100), range(101, 1000)); 62 exerciseOps(countTo(1000), s -> s.filter(e -> e < 100), countTo(99)); 63 exerciseOps(countTo(1000), s -> s.filter(e -> e == 100), Arrays.asList(100)); 68 Collection<Integer> result = exerciseOps(data, s -> s.filter(pTrue)); 71 result = exerciseOps(data, s -> s.filter(pFalse)); 74 exerciseOps(data, s -> s.filter(pEven)); 75 exerciseOps(data, s -> s.filter(pOdd)); 77 result = exerciseOps(data, s -> s.filter(pOdd.and(pEven))) [all...] |
MapOpTest.java | 60 exerciseOps(countTo(0), s -> s.map(LambdaTestHelpers.identity()), countTo(0)); 61 exerciseOps(countTo(1000), s -> s.map(LambdaTestHelpers.identity()), countTo(1000)); 65 exerciseOps(countTo(1000), s -> s.map(e -> (Integer) (1000 + e)), range(1001, 2000)); 92 exerciseOps(data, s -> s.mapToInt(i -> i)); 93 exerciseOps(data, s -> s.mapToLong(i -> i)); 94 exerciseOps(data, s -> s.mapToDouble(i -> i)); 101 exerciseOps(data, s -> s.mapToObj(i -> i)); 102 exerciseOps(data, s -> s.map(i -> 0)); 103 exerciseOps(data, s -> s.map(i -> i * 2)); 104 exerciseOps(data, s -> s.asLongStream()) [all...] |
ExplodeOpTest.java | 67 exerciseOps(TestData.Factory.ofArray("stringsArray", stringsArray), s -> s.flatMap(flattenChars)); 68 exerciseOps(TestData.Factory.ofArray("LONG_STRING", new String[] {LONG_STRING}), s -> s.flatMap(flattenChars)); 73 Collection<Integer> result = exerciseOps(data, s -> s.flatMap(mfId)); 76 result = exerciseOps(data, s -> s.flatMap(mfNull)); 79 result = exerciseOps(data, s-> s.flatMap(e -> Stream.empty())); 82 exerciseOps(data, s -> s.flatMap(mfLt)); 83 exerciseOps(data, s -> s.flatMap(integerRangeMapper)); 84 exerciseOps(data, s -> s.flatMap((Integer e) -> IntStream.range(0, e).boxed().limit(10))); 91 Collection<Integer> result = exerciseOps(data, s -> s.flatMap(i -> Collections.singleton(i).stream().mapToInt(j -> j))); 95 result = exerciseOps(data, s -> s.flatMap(i -> IntStream.empty())) [all...] |
SliceOpTest.java | 66 exerciseOps(Collections.emptyList(), s -> s.skip(0), Collections.emptyList()); 67 exerciseOps(Collections.emptyList(), s -> s.skip(10), Collections.emptyList()); 69 exerciseOps(countTo(1), s -> s.skip(0), countTo(1)); 70 exerciseOps(countTo(1), s -> s.skip(1), Collections.emptyList()); 71 exerciseOps(countTo(100), s -> s.skip(0), countTo(100)); 72 exerciseOps(countTo(100), s -> s.skip(10), range(11, 100)); 73 exerciseOps(countTo(100), s -> s.skip(100), Collections.emptyList()); 74 exerciseOps(countTo(100), s -> s.skip(200), Collections.emptyList()); 88 exerciseOps(Collections.emptyList(), s -> s.limit(0), Collections.emptyList()); 89 exerciseOps(Collections.emptyList(), s -> s.limit(10), Collections.emptyList()) [all...] |
FindFirstOpTest.java | 51 exerciseOps(countTo(1000), s -> Arrays.asList(new Integer[]{s.filter(pEven).findFirst().get()}).stream(), Arrays.asList(2)); 52 exerciseOps(countTo(1000), s -> Arrays.asList(new Integer[]{s.findFirst().get()}).stream(), Arrays.asList(1)); 53 exerciseOps(countTo(1000), s -> Arrays.asList(new Integer[]{s.filter(e -> e == 499).findFirst().get()}).stream(), Arrays.asList(499)); 54 exerciseOps(countTo(1000), s -> Arrays.asList(new Integer[]{s.filter(e -> e == 999).findFirst().get()}).stream(), Arrays.asList(999)); 55 exerciseOps(countTo(0), s -> Arrays.asList(new Integer[]{s.findFirst().orElse(-1)}).stream(), Arrays.asList(-1)); 56 exerciseOps(countTo(1000), s -> Arrays.asList(new Integer[]{s.filter(e -> e == 1499).findFirst().orElse(-1)}).stream(), Arrays.asList(-1));
|
DistinctOpTest.java | 95 Collection<Integer> node = exerciseOps(data, Stream::distinct); 103 node = exerciseOps(data, s -> s.distinct().distinct()); 113 Collection<Integer> node = exerciseOps(new SortedTestData<>(l), Stream::distinct);
|
IntUniqOpTest.java | 56 Collection<Integer> result = exerciseOps(data, s -> s.distinct().boxed());
|
SortedOpTest.java | 178 result = exerciseOps(data, s -> s.sorted(cInteger.reversed())); 251 Collection<Integer> result = exerciseOps(data, s -> s.sorted()); 299 Collection<Long> result = exerciseOps(data, s -> s.sorted()); 347 Collection<Double> result = exerciseOps(data, s -> s.sorted());
|
SequentialOpTest.java | 130 exerciseOps(data, composed);
|
/libcore/ojluni/src/test/java/util/stream/bootlib/java/util/stream/ |
OpTestCase.java | 102 Collection<U> exerciseOps(TestData<T, S_IN> data, Function<S_IN, S_OUT> m) { 186 Collection<U> exerciseOps(Collection<T> data, Function<Stream<T>, S_OUT> m) { 192 Collection<U> exerciseOps(Collection<T> data, Function<Stream<T>, S_OUT> m, I expected) { 199 Collection<U> exerciseOps(int[] data, Function<IntStream, S_OUT> m) { 203 protected Collection<Integer> exerciseOps(int[] data, Function<IntStream, IntStream> m, int[] expected) {
|
/libcore/ojluni/src/test/java/util/stream/testlib/org/openjdk/testlib/java/util/stream/ |
OpTestCase.java | 103 Collection<U> exerciseOps(TestData<T, S_IN> data, Function<S_IN, S_OUT> m) { 187 Collection<U> exerciseOps(Collection<T> data, Function<Stream<T>, S_OUT> m) { 193 Collection<U> exerciseOps(Collection<T> data, Function<Stream<T>, S_OUT> m, I expected) { 200 Collection<U> exerciseOps(int[] data, Function<IntStream, S_OUT> m) { 204 protected Collection<Integer> exerciseOps(int[] data, Function<IntStream, IntStream> m, int[] expected) {
|
/libcore/ojluni/src/test/java/util/stream/boottest/java/util/stream/ |
DoubleNodeTest.java | 155 exerciseOps(data, s -> s);
|
IntNodeTest.java | 155 exerciseOps(data, s -> s);
|
LongNodeTest.java | 155 exerciseOps(data, s -> s);
|
NodeTest.java | 131 exerciseOps(data, s -> s);
|