Home
last modified time | relevance | path

Searched refs:collect (Results 1 – 25 of 4253) sorted by relevance

12345678910>>...171

/external/rust/crates/rayon/tests/
Dstr.rs15 let s: String = rng.sample_iter::<char, _>(&Standard).take(1024).collect(); in execute_strings()
17 let par_chars: String = s.par_chars().collect(); in execute_strings()
20 let par_even: String = s.par_chars().filter(|&c| (c as u32) & 1 == 0).collect(); in execute_strings()
21 let ser_even: String = s.chars().filter(|&c| (c as u32) & 1 == 0).collect(); in execute_strings()
25 let vchars: Vec<char> = s.par_chars().collect(); in execute_strings()
26 let par_chars: String = vchars.par_iter().collect(); in execute_strings()
29 let par_bytes: Vec<u8> = s.par_bytes().collect(); in execute_strings()
32 let par_utf16: Vec<u16> = s.par_encode_utf16().collect(); in execute_strings()
33 let ser_utf16: Vec<u16> = s.encode_utf16().collect(); in execute_strings()
36 let par_charind: Vec<_> = s.par_char_indices().collect(); in execute_strings()
[all …]
Dproducer_split_at.rs97 chain.rev().collect() in callback()
99 chain.collect() in callback()
131 let v: Vec<_> = (0..10).collect(); in range()
137 let v: Vec<_> = (0u16..=10).collect(); in range_inclusive()
143 let v: Vec<_> = std::iter::repeat(1).take(5).collect(); in repeatn()
149 let s: Vec<_> = (0..10).collect(); in slice_iter()
150 let v: Vec<_> = s.iter().collect(); in slice_iter()
156 let mut s: Vec<_> = (0..10).collect(); in slice_iter_mut()
158 let expected: Vec<_> = v.iter_mut().collect(); in slice_iter_mut()
168 let s: Vec<_> = (0..10).collect(); in slice_chunks()
[all …]
/external/kotlinx.coroutines/kotlinx-coroutines-core/common/test/flow/sharing/
DSharedFlowScenarioTest.kt28 val a = subscribe("a"); collect(a, 4) in <lambda>()
33 val e8 = emitSuspends(8); collect(a, 5); emitResumes(e8); expectReplayOf(8) in <lambda>()
34 val e9 = emitSuspends(9); collect(a, 6); emitResumes(e9); expectReplayOf(9) in <lambda>()
39 collect(a, 7); emitResumes(e10); expectReplayOf(10) // buffer 8, 9 | 10 in <lambda>()
40 collect(a, 8); emitResumes(e11); expectReplayOf(11) // buffer 9, 10 | 11 in <lambda>()
42 collect(a, 9); emitResumes(e12); expectReplayOf(12) in <lambda>()
43 collect(a, 10, 11, 12); expectReplayOf(12) // buffer empty | 12 in <lambda>()
51 collect(a, 13); emitResumes(e16); expectReplayOf(16) // buffer 14, 15, | 16 in <lambda>()
52 collect(a, 14); emitResumes(e18); expectReplayOf(18) // buffer 15, 16 | 18 in <lambda>()
57 collect(a, 15); emitResumes(e19); expectReplayOf(19) // buffer 16, 18 | 19 in <lambda>()
[all …]
/external/rust/crates/hashbrown/tests/
Drayon.rs36 let vec_seq = MAP_EMPTY.iter().collect::<Vec<_>>(); in map_seq_par_equivalence_iter_empty()
37 let vec_par = MAP_EMPTY.par_iter().collect::<Vec<_>>(); in map_seq_par_equivalence_iter_empty()
44 let mut vec_seq = MAP.iter().collect::<Vec<_>>(); in map_seq_par_equivalence_iter()
45 let mut vec_par = MAP.par_iter().collect::<Vec<_>>(); in map_seq_par_equivalence_iter()
67 let vec_seq = MAP_EMPTY.keys().collect::<Vec<&char>>(); in map_seq_par_equivalence_keys_empty()
68 let vec_par = MAP_EMPTY.par_keys().collect::<Vec<&char>>(); in map_seq_par_equivalence_keys_empty()
77 let mut vec_seq = MAP.keys().collect::<Vec<_>>(); in map_seq_par_equivalence_keys()
78 let mut vec_par = MAP.par_keys().collect::<Vec<_>>(); in map_seq_par_equivalence_keys()
93 let vec_seq = MAP_EMPTY.values().collect::<Vec<_>>(); in map_seq_par_equivalence_values_empty()
94 let vec_par = MAP_EMPTY.par_values().collect::<Vec<_>>(); in map_seq_par_equivalence_values_empty()
[all …]
/external/guava/guava-testlib/src/com/google/common/collect/testing/
DAbstractCollectionTestSuiteBuilder.java17 package com.google.common.collect.testing;
20 import com.google.common.collect.testing.testers.CollectionAddAllTester;
21 import com.google.common.collect.testing.testers.CollectionAddTester;
22 import com.google.common.collect.testing.testers.CollectionClearTester;
23 import com.google.common.collect.testing.testers.CollectionContainsAllTester;
24 import com.google.common.collect.testing.testers.CollectionContainsTester;
25 import com.google.common.collect.testing.testers.CollectionCreationTester;
26 import com.google.common.collect.testing.testers.CollectionEqualsTester;
27 import com.google.common.collect.testing.testers.CollectionForEachTester;
28 import com.google.common.collect.testing.testers.CollectionIsEmptyTester;
[all …]
DListTestSuiteBuilder.java17 package com.google.common.collect.testing;
19 import static com.google.common.collect.testing.features.CollectionFeature.KNOWN_ORDER;
20 import static com.google.common.collect.testing.features.CollectionFeature.SERIALIZABLE;
21 import static com.google.common.collect.testing.features.CollectionFeature.SERIALIZABLE_INCLUDING_V…
24 import com.google.common.collect.testing.features.CollectionFeature;
25 import com.google.common.collect.testing.features.Feature;
26 import com.google.common.collect.testing.testers.CollectionSerializationEqualTester;
27 import com.google.common.collect.testing.testers.ListAddAllAtIndexTester;
28 import com.google.common.collect.testing.testers.ListAddAllTester;
29 import com.google.common.collect.testing.testers.ListAddAtIndexTester;
[all …]
DMapTestSuiteBuilder.java17 package com.google.common.collect.testing;
19 import static com.google.common.collect.testing.DerivedCollectionGenerators.keySetGenerator;
22 import com.google.common.collect.testing.DerivedCollectionGenerators.MapEntrySetGenerator;
23 import com.google.common.collect.testing.DerivedCollectionGenerators.MapValueCollectionGenerator;
24 import com.google.common.collect.testing.features.CollectionFeature;
25 import com.google.common.collect.testing.features.CollectionSize;
26 import com.google.common.collect.testing.features.Feature;
27 import com.google.common.collect.testing.features.MapFeature;
28 import com.google.common.collect.testing.testers.MapClearTester;
29 import com.google.common.collect.testing.testers.MapComputeIfAbsentTester;
[all …]
/external/guava/
Dcycle_whitelist.txt3 NAMESPACE com.google.common.collect.testing
4 NAMESPACE com.google.common.collect.testing.google
25 FIELD com.google.common.collect.AbstractBiMap.EntrySet.iterator.$.entry com.google.common.collect.A…
26 FIELD com.google.common.collect.AbstractMapBasedMultimap.map
27 FIELD com.google.common.collect.AbstractMultimap.asMap com.google.common.collect.AbstractMapBasedMu…
28 FIELD com.google.common.collect.AbstractMultimap.values com.google.common.collect.LinkedListMultima…
29 FIELD com.google.common.collect.AbstractMultimap.values com.google.common.collect.Multimaps.MapMult…
30 FIELD com.google.common.collect.AbstractMultiset.entrySet com.google.common.collect.FilteredEntryMu…
31 FIELD com.google.common.collect.ConcurrentHashMultiset.countMap
32 FIELD com.google.common.collect.ImmutableMultiset.asList
[all …]
/external/guava/android/guava-testlib/src/com/google/common/collect/testing/
DAbstractCollectionTestSuiteBuilder.java17 package com.google.common.collect.testing;
20 import com.google.common.collect.testing.testers.CollectionAddAllTester;
21 import com.google.common.collect.testing.testers.CollectionAddTester;
22 import com.google.common.collect.testing.testers.CollectionClearTester;
23 import com.google.common.collect.testing.testers.CollectionContainsAllTester;
24 import com.google.common.collect.testing.testers.CollectionContainsTester;
25 import com.google.common.collect.testing.testers.CollectionCreationTester;
26 import com.google.common.collect.testing.testers.CollectionEqualsTester;
27 import com.google.common.collect.testing.testers.CollectionIsEmptyTester;
28 import com.google.common.collect.testing.testers.CollectionIteratorTester;
[all …]
DListTestSuiteBuilder.java17 package com.google.common.collect.testing;
19 import static com.google.common.collect.testing.features.CollectionFeature.KNOWN_ORDER;
20 import static com.google.common.collect.testing.features.CollectionFeature.SERIALIZABLE;
21 import static com.google.common.collect.testing.features.CollectionFeature.SERIALIZABLE_INCLUDING_V…
24 import com.google.common.collect.testing.features.CollectionFeature;
25 import com.google.common.collect.testing.features.Feature;
26 import com.google.common.collect.testing.testers.CollectionSerializationEqualTester;
27 import com.google.common.collect.testing.testers.ListAddAllAtIndexTester;
28 import com.google.common.collect.testing.testers.ListAddAllTester;
29 import com.google.common.collect.testing.testers.ListAddAtIndexTester;
[all …]
/external/python/cpython2/Lib/test/
Dtest_gc.py49 gc.collect()
51 self.assertEqual(gc.collect(), 1)
56 gc.collect()
58 self.assertEqual(gc.collect(), 1)
65 gc.collect()
68 self.assertEqual(gc.collect(), 2)
74 gc.collect()
76 self.assertNotEqual(gc.collect(), 0)
81 gc.collect()
83 self.assertNotEqual(gc.collect(), 0)
[all …]
/external/rust/crates/rayon/src/iter/
Dtest.rs28 let a: Vec<i32> = (0..1024).collect(); in execute()
31 let c: Vec<i32> = (0..1024).map(|i| i + 1).collect(); in execute()
37 let a: Vec<i32> = (0..1024).collect(); in execute_cloned()
40 let c: Vec<i32> = (0..1024).collect(); in execute_cloned()
49 let c: Vec<i32> = (0..1024).map(|i| i + 1).collect(); in execute_range()
56 let b: LinkedList<i64> = a.into_par_iter().map(|i| i + 1).collect(); in execute_unindexed_range()
57 let c: LinkedList<i64> = (0..1024).map(|i| i + 1).collect(); in execute_unindexed_range()
70 let b: Vec<i128> = a.map(|i| i + 1).collect(); in execute_pseudo_indexed_range()
71 let c: Vec<i128> = range.map(|i| i + 1).collect(); in execute_pseudo_indexed_range()
83 let a: Vec<i32> = (0..1024).collect(); in map_sum()
[all …]
/external/python/cpython3/Lib/test/
Dtest_gc.py89 gc.collect()
91 self.assertEqual(gc.collect(), 1)
96 gc.collect()
98 self.assertEqual(gc.collect(), 1)
105 gc.collect()
108 self.assertEqual(gc.collect(), 2)
114 gc.collect()
116 self.assertNotEqual(gc.collect(), 0)
121 gc.collect()
123 self.assertNotEqual(gc.collect(), 0)
[all …]
/external/rust/crates/quiche/src/
Dranges.rs98 .collect(); in remove_until()
192 .collect(); in fmt()
277 assert_eq!(&r.flatten().collect::<Vec<u64>>(), &empty); in insert_non_overlapping()
281 assert_eq!(&r.flatten().collect::<Vec<u64>>(), &[4, 5, 6]); in insert_non_overlapping()
285 assert_eq!(&r.flatten().collect::<Vec<u64>>(), &[4, 5, 6, 9, 10, 11]); in insert_non_overlapping()
294 assert_eq!(&r.flatten().collect::<Vec<u64>>(), &[4, 5, 6, 9, 10, 11]); in insert_contained()
298 assert_eq!(&r.flatten().collect::<Vec<u64>>(), &[4, 5, 6, 9, 10, 11]); in insert_contained()
302 assert_eq!(&r.flatten().collect::<Vec<u64>>(), &[4, 5, 6, 9, 10, 11]); in insert_contained()
306 assert_eq!(&r.flatten().collect::<Vec<u64>>(), &[4, 5, 6, 9, 10, 11]); in insert_contained()
310 assert_eq!(&r.flatten().collect::<Vec<u64>>(), &[4, 5, 6, 9, 10, 11]); in insert_contained()
[all …]
/external/guava/guava-testlib/test/com/google/common/collect/testing/
DOpenJdk6MapTests.java17 package com.google.common.collect.testing;
19 import static com.google.common.collect.Lists.newArrayList;
20 import static com.google.common.collect.testing.testers.CollectionAddAllTester.getAddAllUnsupported…
21 import static com.google.common.collect.testing.testers.CollectionAddAllTester.getAddAllUnsupported…
22 import static com.google.common.collect.testing.testers.CollectionAddTester.getAddUnsupportedNotPre…
23 import static com.google.common.collect.testing.testers.CollectionCreationTester.getCreateWithNullU…
24 import static com.google.common.collect.testing.testers.MapCreationTester.getCreateWithNullKeyUnsup…
25 import static com.google.common.collect.testing.testers.MapEntrySetTester.getContainsEntryWithIncom…
26 import static com.google.common.collect.testing.testers.MapEntrySetTester.getContainsEntryWithIncom…
27 import static com.google.common.collect.testing.testers.MapMergeTester.getMergeNullValueMethod;
[all …]
/external/rust/crates/rayon/src/iter/collect/
Dtest.rs38 let collect = Collect::new(&mut v, 5); in produce_fewer_items() localVariable
39 collect.with_consumer(|consumer| { in produce_fewer_items()
52 let collect = Collect::new(&mut v, 4); in left_produces_items_with_no_complete() localVariable
53 collect.with_consumer(|consumer| { in left_produces_items_with_no_complete()
69 let collect = Collect::new(&mut v, 4); in right_produces_items_with_no_complete() localVariable
70 collect.with_consumer(|consumer| { in right_produces_items_with_no_complete()
86 let collect = Collect::new(&mut v, 2); in produces_items_with_no_complete() localVariable
87 collect.with_consumer(|consumer| { in produces_items_with_no_complete()
105 let collect = Collect::new(&mut v, 4); in left_produces_too_many_items() localVariable
106 collect.with_consumer(|consumer| { in left_produces_too_many_items()
[all …]
/external/guava/guava-testlib/src/com/google/common/collect/testing/testers/
DCollectionToStringTester.java17 package com.google.common.collect.testing.testers;
19 import static com.google.common.collect.testing.features.CollectionFeature.ALLOWS_NULL_VALUES;
20 import static com.google.common.collect.testing.features.CollectionFeature.KNOWN_ORDER;
21 import static com.google.common.collect.testing.features.CollectionFeature.NON_STANDARD_TOSTRING;
22 import static com.google.common.collect.testing.features.CollectionSize.ONE;
23 import static com.google.common.collect.testing.features.CollectionSize.SEVERAL;
24 import static com.google.common.collect.testing.features.CollectionSize.ZERO;
27 import com.google.common.collect.testing.AbstractCollectionTester;
28 import com.google.common.collect.testing.Helpers;
29 import com.google.common.collect.testing.features.CollectionFeature;
[all …]
DListListIteratorTester.java17 package com.google.common.collect.testing.testers;
19 import static com.google.common.collect.testing.IteratorFeature.MODIFIABLE;
20 import static com.google.common.collect.testing.IteratorFeature.UNMODIFIABLE;
21 import static com.google.common.collect.testing.features.CollectionFeature.SUPPORTS_REMOVE;
22 import static com.google.common.collect.testing.features.ListFeature.SUPPORTS_ADD_WITH_INDEX;
23 import static com.google.common.collect.testing.features.ListFeature.SUPPORTS_SET;
24 import static com.google.common.collect.testing.testers.Platform.listListIteratorTesterNumIteration…
29 import com.google.common.collect.testing.Helpers;
30 import com.google.common.collect.testing.IteratorFeature;
31 import com.google.common.collect.testing.ListIteratorTester;
[all …]
/external/guava/android/guava-testlib/test/com/google/common/collect/testing/
DOpenJdk6MapTests.java17 package com.google.common.collect.testing;
19 import static com.google.common.collect.Lists.newArrayList;
20 import static com.google.common.collect.testing.testers.CollectionAddAllTester.getAddAllUnsupported…
21 import static com.google.common.collect.testing.testers.CollectionAddAllTester.getAddAllUnsupported…
22 import static com.google.common.collect.testing.testers.CollectionAddTester.getAddUnsupportedNotPre…
23 import static com.google.common.collect.testing.testers.CollectionCreationTester.getCreateWithNullU…
24 import static com.google.common.collect.testing.testers.MapCreationTester.getCreateWithNullKeyUnsup…
25 import static com.google.common.collect.testing.testers.MapEntrySetTester.getContainsEntryWithIncom…
26 import static com.google.common.collect.testing.testers.MapEntrySetTester.getContainsEntryWithIncom…
27 import static com.google.common.collect.testing.testers.MapPutAllTester.getPutAllNullKeyUnsupported…
[all …]
/external/guava/guava-tests/test/com/google/common/collect/
DMoreCollectorsTest.java17 package com.google.common.collect;
35 assertThat(Stream.empty().collect(MoreCollectors.toOptional())).isEmpty(); in testToOptionalEmpty()
39 assertThat(Stream.of(1).collect(MoreCollectors.toOptional())).hasValue(1); in testToOptionalSingleton()
45 stream.collect(MoreCollectors.toOptional()); in testToOptionalNull()
53 Stream.of(1, 2).collect(MoreCollectors.toOptional()); in testToOptionalMultiple()
62 Stream.of(1, 2, 3, 4, 5, 6).collect(MoreCollectors.toOptional()); in testToOptionalMany()
71 Stream.empty().collect(MoreCollectors.onlyElement()); in testOnlyElement()
78 assertThat(Stream.of(1).collect(MoreCollectors.onlyElement())).isEqualTo(1); in testOnlyElementSingleton()
82 assertThat(Stream.of((Object) null).collect(MoreCollectors.onlyElement())).isNull(); in testOnlyElementNull()
87 Stream.of(1, 2).collect(MoreCollectors.onlyElement()); in testOnlyElementMultiple()
[all …]
/external/guava/android/guava-testlib/src/com/google/common/collect/testing/testers/
DCollectionToStringTester.java17 package com.google.common.collect.testing.testers;
19 import static com.google.common.collect.testing.features.CollectionFeature.ALLOWS_NULL_VALUES;
20 import static com.google.common.collect.testing.features.CollectionFeature.KNOWN_ORDER;
21 import static com.google.common.collect.testing.features.CollectionFeature.NON_STANDARD_TOSTRING;
22 import static com.google.common.collect.testing.features.CollectionSize.ONE;
23 import static com.google.common.collect.testing.features.CollectionSize.SEVERAL;
24 import static com.google.common.collect.testing.features.CollectionSize.ZERO;
27 import com.google.common.collect.testing.AbstractCollectionTester;
28 import com.google.common.collect.testing.Helpers;
29 import com.google.common.collect.testing.features.CollectionFeature;
[all …]
DListListIteratorTester.java17 package com.google.common.collect.testing.testers;
19 import static com.google.common.collect.testing.IteratorFeature.MODIFIABLE;
20 import static com.google.common.collect.testing.IteratorFeature.UNMODIFIABLE;
21 import static com.google.common.collect.testing.features.CollectionFeature.SUPPORTS_REMOVE;
22 import static com.google.common.collect.testing.features.ListFeature.SUPPORTS_ADD_WITH_INDEX;
23 import static com.google.common.collect.testing.features.ListFeature.SUPPORTS_SET;
24 import static com.google.common.collect.testing.testers.Platform.listListIteratorTesterNumIteration…
29 import com.google.common.collect.testing.Helpers;
30 import com.google.common.collect.testing.IteratorFeature;
31 import com.google.common.collect.testing.ListIteratorTester;
[all …]
/external/guava/guava-testlib/src/com/google/common/collect/testing/google/
DMultimapRemoveAllTester.java17 package com.google.common.collect.testing.google;
19 import static com.google.common.collect.testing.Helpers.assertContentsAnyOrder;
20 import static com.google.common.collect.testing.Helpers.assertEmpty;
21 import static com.google.common.collect.testing.features.CollectionSize.SEVERAL;
22 import static com.google.common.collect.testing.features.CollectionSize.ZERO;
23 import static com.google.common.collect.testing.features.MapFeature.ALLOWS_ANY_NULL_QUERIES;
24 import static com.google.common.collect.testing.features.MapFeature.ALLOWS_NULL_KEYS;
25 import static com.google.common.collect.testing.features.MapFeature.SUPPORTS_REMOVE;
26 import static com.google.common.collect.testing.google.GoogleHelpers.assertEmpty;
29 import com.google.common.collect.Multimap;
[all …]
DMultimapEntriesTester.java15 package com.google.common.collect.testing.google;
17 import static com.google.common.collect.testing.Helpers.assertContains;
18 import static com.google.common.collect.testing.Helpers.assertEqualIgnoringOrder;
19 import static com.google.common.collect.testing.features.CollectionFeature.SUPPORTS_ITERATOR_REMOVE;
20 import static com.google.common.collect.testing.features.CollectionSize.ONE;
21 import static com.google.common.collect.testing.features.CollectionSize.ZERO;
22 import static com.google.common.collect.testing.features.MapFeature.ALLOWS_NULL_KEYS;
23 import static com.google.common.collect.testing.features.MapFeature.ALLOWS_NULL_KEY_QUERIES;
24 import static com.google.common.collect.testing.features.MapFeature.ALLOWS_NULL_VALUES;
25 import static com.google.common.collect.testing.features.MapFeature.ALLOWS_NULL_VALUE_QUERIES;
[all …]
/external/guava/android/guava-testlib/src/com/google/common/collect/testing/google/
DMultimapRemoveAllTester.java17 package com.google.common.collect.testing.google;
19 import static com.google.common.collect.testing.Helpers.assertContentsAnyOrder;
20 import static com.google.common.collect.testing.Helpers.assertEmpty;
21 import static com.google.common.collect.testing.features.CollectionSize.SEVERAL;
22 import static com.google.common.collect.testing.features.CollectionSize.ZERO;
23 import static com.google.common.collect.testing.features.MapFeature.ALLOWS_ANY_NULL_QUERIES;
24 import static com.google.common.collect.testing.features.MapFeature.ALLOWS_NULL_KEYS;
25 import static com.google.common.collect.testing.features.MapFeature.SUPPORTS_REMOVE;
26 import static com.google.common.collect.testing.google.GoogleHelpers.assertEmpty;
29 import com.google.common.collect.Multimap;
[all …]

12345678910>>...171