/external/guava/guava-tests/test/com/google/common/collect/ |
D | AbstractMultimapTest.java | 48 private Multimap<String, Integer> multimap; field in AbstractMultimapTest 62 multimap = create(); in setUp() 66 return multimap; in getMultimap() 94 assertEquals(expectedSize, multimap.size()); in assertSize() 97 for (Entry<String, Integer> entry : multimap.entries()) { in assertSize() 98 assertTrue(multimap.containsEntry(entry.getKey(), entry.getValue())); in assertSize() 105 multimap.asMap().entrySet()) { in assertSize() 120 multimap.put("foo", 1); in testSize1() 125 multimap.put("foo", 1); in testSize2Keys() 126 multimap.put("bar", 5); in testSize2Keys() [all …]
|
D | AbstractListMultimapTest.java | 48 Multimap<String, Integer> multimap = create(); in testDuplicates() local 49 multimap.put("foo", 1); in testDuplicates() 50 multimap.put("foo", 3); in testDuplicates() 51 multimap.put("bar", 3); in testDuplicates() 52 multimap.put("foo", 1); in testDuplicates() 53 assertEquals(4, multimap.size()); in testDuplicates() 54 assertTrue(multimap.containsEntry("foo", 1)); in testDuplicates() 55 multimap.remove("foo", 1); in testDuplicates() 56 assertEquals(3, multimap.size()); in testDuplicates() 57 assertTrue(multimap.containsEntry("foo", 1)); in testDuplicates() [all …]
|
D | LinkedHashMultimapTest.java | 51 Multimap<String, Integer> multimap = getMultimap(); in initializeMultimap5() local 52 multimap.put("foo", 5); in initializeMultimap5() 53 multimap.put("bar", 4); in initializeMultimap5() 54 multimap.put("foo", 3); in initializeMultimap5() 55 multimap.put("cow", 2); in initializeMultimap5() 56 multimap.put("bar", 1); in initializeMultimap5() 57 return multimap; in initializeMultimap5() 66 Multimap<String, Integer> multimap = initializeMultimap5(); in testOrderingReadOnly() local 67 assertOrderingReadOnly(multimap); in testOrderingReadOnly() 71 Multimap<String, Integer> multimap = initializeMultimap5(); in testOrderingUnmodifiable() local [all …]
|
D | TreeMultimapNaturalTest.java | 68 TreeMultimap<String, Integer> multimap = TreeMultimap.create(); in createPopulate() local 69 multimap.put("google", 2); in createPopulate() 70 multimap.put("google", 6); in createPopulate() 71 multimap.put("foo", 3); in createPopulate() 72 multimap.put("foo", 1); in createPopulate() 73 multimap.put("foo", 7); in createPopulate() 74 multimap.put("tree", 4); in createPopulate() 75 multimap.put("tree", 0); in createPopulate() 76 return multimap; in createPopulate() 85 TreeMultimap<String, Integer> multimap = createPopulate(); in testOrderedGet() local [all …]
|
D | ImmutableSetMultimapTest.java | 44 ImmutableSetMultimap<String, Integer> multimap = new Builder<String, Integer>() in testBuilder_withImmutableEntry() local 47 assertEquals(ImmutableSet.of(1), multimap.get("one")); in testBuilder_withImmutableEntry() 93 Multimap<String, Integer> multimap = builder.build(); in testBuilderPutAllIterable() local 94 assertEquals(ImmutableSet.of(1, 2, 3, 6, 7), multimap.get("foo")); in testBuilderPutAllIterable() 95 assertEquals(ImmutableSet.of(4, 5), multimap.get("bar")); in testBuilderPutAllIterable() 96 assertEquals(7, multimap.size()); in testBuilderPutAllIterable() 105 Multimap<String, Integer> multimap = builder.build(); in testBuilderPutAllVarargs() local 106 assertEquals(ImmutableSet.of(1, 2, 3, 6, 7), multimap.get("foo")); in testBuilderPutAllVarargs() 107 assertEquals(ImmutableSet.of(4, 5), multimap.get("bar")); in testBuilderPutAllVarargs() 108 assertEquals(7, multimap.size()); in testBuilderPutAllVarargs() [all …]
|
D | ArrayListMultimapTest.java | 44 Multimap<String, Integer> multimap = create(); in testGetRandomAccess() local 45 multimap.put("foo", 1); in testGetRandomAccess() 46 multimap.put("foo", 3); in testGetRandomAccess() 47 assertTrue(multimap.get("foo") instanceof RandomAccess); in testGetRandomAccess() 48 assertTrue(multimap.get("bar") instanceof RandomAccess); in testGetRandomAccess() 55 Multimap<String, Integer> multimap = create(); in testRemoveAllRandomAccess() local 56 multimap.put("foo", 1); in testRemoveAllRandomAccess() 57 multimap.put("foo", 3); in testRemoveAllRandomAccess() 58 assertTrue(multimap.removeAll("foo") instanceof RandomAccess); in testRemoveAllRandomAccess() 59 assertTrue(multimap.removeAll("bar") instanceof RandomAccess); in testRemoveAllRandomAccess() [all …]
|
D | ImmutableListMultimapTest.java | 44 ImmutableListMultimap<String, Integer> multimap = new Builder<String, Integer>() in testBuilder_withImmutableEntry() local 47 assertEquals(Arrays.asList(1), multimap.get("one")); in testBuilder_withImmutableEntry() 93 Multimap<String, Integer> multimap = builder.build(); in testBuilderPutAllIterable() local 94 assertEquals(Arrays.asList(1, 2, 3, 6, 7), multimap.get("foo")); in testBuilderPutAllIterable() 95 assertEquals(Arrays.asList(4, 5), multimap.get("bar")); in testBuilderPutAllIterable() 96 assertEquals(7, multimap.size()); in testBuilderPutAllIterable() 105 Multimap<String, Integer> multimap = builder.build(); in testBuilderPutAllVarargs() local 106 assertEquals(Arrays.asList(1, 2, 3, 6, 7), multimap.get("foo")); in testBuilderPutAllVarargs() 107 assertEquals(Arrays.asList(4, 5), multimap.get("bar")); in testBuilderPutAllVarargs() 108 assertEquals(7, multimap.size()); in testBuilderPutAllVarargs() [all …]
|
D | AbstractSetMultimapTest.java | 38 Multimap<String, Integer> multimap = getMultimap(); in testDuplicates() local 39 assertTrue(multimap.put("foo", 1)); in testDuplicates() 40 assertTrue(multimap.put("foo", 3)); in testDuplicates() 41 assertTrue(multimap.put("bar", 3)); in testDuplicates() 42 assertFalse(multimap.put("foo", 1)); in testDuplicates() 44 assertTrue(multimap.containsEntry("foo", 1)); in testDuplicates() 45 assertTrue(multimap.remove("foo", 1)); in testDuplicates() 47 assertFalse(multimap.containsEntry("foo", 1)); in testDuplicates() 51 Multimap<String, Integer> multimap = getMultimap(); in testGetEquals() local 52 multimap.put("foo", 1); in testGetEquals() [all …]
|
D | LinkedListMultimapTest.java | 60 Multimap<String, Integer> multimap = create(); in testGetRandomAccess() local 61 multimap.put("foo", 1); in testGetRandomAccess() 62 multimap.put("foo", 3); in testGetRandomAccess() 63 assertFalse(multimap.get("foo") instanceof RandomAccess); in testGetRandomAccess() 64 assertFalse(multimap.get("bar") instanceof RandomAccess); in testGetRandomAccess() 72 Multimap<String, Integer> multimap = create(); in testRemoveAllRandomAccess() local 73 multimap.put("foo", 1); in testRemoveAllRandomAccess() 74 multimap.put("foo", 3); in testRemoveAllRandomAccess() 75 assertTrue(multimap.removeAll("foo") instanceof RandomAccess); in testRemoveAllRandomAccess() 76 assertTrue(multimap.removeAll("bar") instanceof RandomAccess); in testRemoveAllRandomAccess() [all …]
|
D | MultimapCollectionTest.java | 132 Multimap<Integer, String> multimap, String[] elements) { in populateMultimapForGet() argument 133 multimap.put(2, "foo"); in populateMultimapForGet() 135 multimap.put(3, element); in populateMultimapForGet() 140 Multimap<String, Integer> multimap, String[] elements) { in populateMultimapForKeySet() argument 142 multimap.put(element, 2); in populateMultimapForKeySet() 143 multimap.put(element, 3); in populateMultimapForKeySet() 148 Multimap<Integer, String> multimap, String[] elements) { in populateMultimapForValues() argument 150 multimap.put(i % 2, elements[i]); in populateMultimapForValues() 155 Multimap<String, Integer> multimap, String[] elements) { in populateMultimapForKeys() argument 157 multimap.put(elements[i], i); in populateMultimapForKeys() [all …]
|
D | TreeMultimapExplicitTest.java | 77 TreeMultimap<String, Integer> multimap = TreeMultimap.create( in createPopulate() local 79 multimap.put("google", 2); in createPopulate() 80 multimap.put("google", 6); in createPopulate() 81 multimap.put(null, 3); in createPopulate() 82 multimap.put(null, 1); in createPopulate() 83 multimap.put(null, 7); in createPopulate() 84 multimap.put("tree", 0); in createPopulate() 85 multimap.put("tree", null); in createPopulate() 86 return multimap; in createPopulate() 117 TreeMultimap<String, Integer> multimap = createPopulate(); in testGetComparator() local [all …]
|
D | MultimapsTest.java | 134 ListMultimap<String, Integer> multimap in testUnmodifiableArrayListMultimapRandomAccess() local 136 assertTrue(multimap.get("foo") instanceof RandomAccess); in testUnmodifiableArrayListMultimapRandomAccess() 137 assertTrue(multimap.get("bar") instanceof RandomAccess); in testUnmodifiableArrayListMultimapRandomAccess() 144 ListMultimap<String, Integer> multimap in testUnmodifiableLinkedListMultimapRandomAccess() local 146 assertFalse(multimap.get("foo") instanceof RandomAccess); in testUnmodifiableLinkedListMultimapRandomAccess() 147 assertFalse(multimap.get("bar") instanceof RandomAccess); in testUnmodifiableLinkedListMultimapRandomAccess() 207 SortedSetMultimap<String, Integer> multimap in testUnmodifiableSynchronizedTreeMultimap() local 209 checkUnmodifiableMultimap(multimap, false, "null", 42); in testUnmodifiableSynchronizedTreeMultimap() 210 assertSame(INT_COMPARATOR, multimap.valueComparator()); in testUnmodifiableSynchronizedTreeMultimap() 217 SortedSetMultimap<String, Integer> multimap = in testSerializingUnmodifiableSynchronizedTreeMultimap() local [all …]
|
D | HashMultimapTest.java | 37 HashMultimap<String, Integer> multimap = HashMultimap.create(); in testCreate() local 38 multimap.put("foo", 1); in testCreate() 39 multimap.put("bar", 2); in testCreate() 40 multimap.put("foo", 3); in testCreate() 41 assertEquals(ImmutableSet.of(1, 3), multimap.get("foo")); in testCreate() 42 assertEquals(8, multimap.expectedValuesPerKey); in testCreate() 46 Multimap<String, Integer> multimap = createSample(); in testCreateFromMultimap() local 47 HashMultimap<String, Integer> copy = HashMultimap.create(multimap); in testCreateFromMultimap() 48 assertEquals(multimap, copy); in testCreateFromMultimap() 53 HashMultimap<String, Integer> multimap = HashMultimap.create(20, 15); in testCreateFromSizes() local [all …]
|
D | MapConstraintsTest.java | 212 Multimap<String, Integer> multimap = LinkedListMultimap.create(); in testConstrainedMultimapLegal() local 214 multimap, TEST_CONSTRAINT); in testConstrainedMultimapLegal() 215 multimap.put(TEST_KEY, TEST_VALUE); in testConstrainedMultimapLegal() 217 multimap.get("bar").add(2); in testConstrainedMultimapLegal() 219 multimap.get("qux").addAll(Arrays.asList(4)); in testConstrainedMultimapLegal() 221 multimap.putAll("zag", Arrays.asList(6)); in testConstrainedMultimapLegal() 223 multimap.putAll(new ImmutableMultimap.Builder<String, Integer>() in testConstrainedMultimapLegal() 227 multimap.putAll(new ImmutableMultimap.Builder<String, Integer>() in testConstrainedMultimapLegal() 231 assertTrue(multimap.equals(constrained)); in testConstrainedMultimapLegal() 232 assertTrue(constrained.equals(multimap)); in testConstrainedMultimapLegal() [all …]
|
D | SubMapMultimapAsMapImplementsMapTest.java | 40 TreeMultimap<String, Integer> multimap in createMultimap() local 43 multimap.put("a", -1); in createMultimap() 44 multimap.put("a", -3); in createMultimap() 45 multimap.put("z", -2); in createMultimap() 46 return multimap; in createMultimap() 54 TreeMultimap<String, Integer> multimap = createMultimap(); in makePopulatedMap() local 55 multimap.put("f", 1); in makePopulatedMap() 56 multimap.put("f", 2); in makePopulatedMap() 57 multimap.put("g", 3); in makePopulatedMap() 58 multimap.put("h", 4); in makePopulatedMap() [all …]
|
D | SynchronizedMultimapTest.java | 39 Multimap<String, Integer> outer = Synchronized.multimap(inner, inner.mutex); in create() 171 ListMultimap<String, Integer> multimap in testSynchronizedListMultimap() local 174 multimap.putAll("foo", Arrays.asList(3, -1, 2, 4, 1)); in testSynchronizedListMultimap() 175 multimap.putAll("bar", Arrays.asList(1, 2, 3, 1)); in testSynchronizedListMultimap() 176 ASSERT.that(multimap.removeAll("foo")).hasContentsInOrder(3, -1, 2, 4, 1); in testSynchronizedListMultimap() 177 assertFalse(multimap.containsKey("foo")); in testSynchronizedListMultimap() 178 ASSERT.that(multimap.replaceValues("bar", Arrays.asList(6, 5))) in testSynchronizedListMultimap() 180 ASSERT.that(multimap.get("bar")).hasContentsInOrder(6, 5); in testSynchronizedListMultimap() 184 SortedSetMultimap<String, Integer> multimap in testSynchronizedSortedSetMultimap() local 187 multimap.putAll("foo", Arrays.asList(3, -1, 2, 4, 1)); in testSynchronizedSortedSetMultimap() [all …]
|
/external/libcxx/test/containers/unord/unord.multimap/unord.multimap.cnstr/ |
D | Android.mk | 17 test_makefile := external/libcxx/test/containers/unord/unord.multimap/unord.multimap.cnstr/Android.… 19 test_name := containers/unord/unord.multimap/unord.multimap.cnstr/default 23 test_name := containers/unord/unord.multimap/unord.multimap.cnstr/size_hash 27 test_name := containers/unord/unord.multimap/unord.multimap.cnstr/range_size_hash_equal_allocator 31 test_name := containers/unord/unord.multimap/unord.multimap.cnstr/init_size 35 test_name := containers/unord/unord.multimap/unord.multimap.cnstr/move_noexcept 39 test_name := containers/unord/unord.multimap/unord.multimap.cnstr/size_hash_equal 43 test_name := containers/unord/unord.multimap/unord.multimap.cnstr/range_size_hash 47 test_name := containers/unord/unord.multimap/unord.multimap.cnstr/default_noexcept 51 test_name := containers/unord/unord.multimap/unord.multimap.cnstr/init_size_hash_equal [all …]
|
/external/libcxx/test/containers/associative/multimap/multimap.cons/ |
D | Android.mk | 17 test_makefile := external/libcxx/test/containers/associative/multimap/multimap.cons/Android.mk 19 test_name := containers/associative/multimap/multimap.cons/default 23 test_name := containers/associative/multimap/multimap.cons/compare 27 test_name := containers/associative/multimap/multimap.cons/alloc 31 test_name := containers/associative/multimap/multimap.cons/iter_iter 35 test_name := containers/associative/multimap/multimap.cons/move_noexcept 39 test_name := containers/associative/multimap/multimap.cons/default_noexcept 43 test_name := containers/associative/multimap/multimap.cons/iter_iter_comp 47 test_name := containers/associative/multimap/multimap.cons/copy 51 test_name := containers/associative/multimap/multimap.cons/move [all …]
|
/external/libcxx/test/containers/unord/unord.multimap/unord.multimap.modifiers/ |
D | Android.mk | 17 test_makefile := external/libcxx/test/containers/unord/unord.multimap/unord.multimap.modifiers/Andr… 19 test_name := containers/unord/unord.multimap/unord.multimap.modifiers/erase_iter_iter_db4 23 test_name := containers/unord/unord.multimap/unord.multimap.modifiers/emplace_hint 27 test_name := containers/unord/unord.multimap/unord.multimap.modifiers/erase_iter_iter_db1 31 test_name := containers/unord/unord.multimap/unord.multimap.modifiers/insert_hint_const_lvalue 35 test_name := containers/unord/unord.multimap/unord.multimap.modifiers/erase_range 39 test_name := containers/unord/unord.multimap/unord.multimap.modifiers/erase_iter_iter_db3 43 test_name := containers/unord/unord.multimap/unord.multimap.modifiers/erase_key 47 test_name := containers/unord/unord.multimap/unord.multimap.modifiers/erase_iter_db2 51 test_name := containers/unord/unord.multimap/unord.multimap.modifiers/insert_init [all …]
|
/external/libcxx/test/containers/associative/multimap/multimap.modifiers/ |
D | Android.mk | 17 test_makefile := external/libcxx/test/containers/associative/multimap/multimap.modifiers/Android.mk 19 test_name := containers/associative/multimap/multimap.modifiers/insert_cv 23 test_name := containers/associative/multimap/multimap.modifiers/insert_rv 27 test_name := containers/associative/multimap/multimap.modifiers/emplace_hint 31 test_name := containers/associative/multimap/multimap.modifiers/insert_initializer_list 35 test_name := containers/associative/multimap/multimap.modifiers/insert_iter_iter 39 test_name := containers/associative/multimap/multimap.modifiers/erase_key 43 test_name := containers/associative/multimap/multimap.modifiers/clear 47 test_name := containers/associative/multimap/multimap.modifiers/insert_iter_rv 51 test_name := containers/associative/multimap/multimap.modifiers/emplace [all …]
|
/external/guava/guava-testlib/src/com/google/common/collect/testing/google/ |
D | UnmodifiableCollectionTests.java | 270 Multimap<K, V> multimap, final K sampleKey, final V sampleValue) { in assertMultimapIsUnmodifiable() argument 272 Collections.unmodifiableList(Lists.newArrayList(multimap.entries())); in assertMultimapIsUnmodifiable() 274 assertMultimapRemainsUnmodified(multimap, originalEntries); in assertMultimapIsUnmodifiable() 280 multimap.clear(); in assertMultimapIsUnmodifiable() 285 assertMultimapRemainsUnmodified(multimap, originalEntries); in assertMultimapIsUnmodifiable() 289 multimap.asMap().entrySet(), in assertMultimapIsUnmodifiable() 294 assertMultimapRemainsUnmodified(multimap, originalEntries); in assertMultimapIsUnmodifiable() 295 if (!multimap.isEmpty()) { in assertMultimapIsUnmodifiable() 297 multimap.asMap().entrySet().iterator().next().getValue(); in assertMultimapIsUnmodifiable() 304 multimap.entries(), in assertMultimapIsUnmodifiable() [all …]
|
/external/libcxx/test/containers/associative/multimap/ |
D | types.pass.cpp | 40 static_assert((std::is_same<std::multimap<int, double>::key_type, int>::value), ""); in main() 41 static_assert((std::is_same<std::multimap<int, double>::mapped_type, double>::value), ""); in main() 42 …static_assert((std::is_same<std::multimap<int, double>::value_type, std::pair<const int, double> >… in main() 43 …static_assert((std::is_same<std::multimap<int, double>::key_compare, std::less<int> >::value), ""); in main() 44 …static_assert((std::is_same<std::multimap<int, double>::allocator_type, std::allocator<std::pair<c… in main() 45 …static_assert((std::is_same<std::multimap<int, double>::reference, std::pair<const int, double>&>:… in main() 46 …static_assert((std::is_same<std::multimap<int, double>::const_reference, const std::pair<const int… in main() 47 …static_assert((std::is_same<std::multimap<int, double>::pointer, std::pair<const int, double>*>::v… in main() 48 …static_assert((std::is_same<std::multimap<int, double>::const_pointer, const std::pair<const int, … in main() 49 static_assert((std::is_same<std::multimap<int, double>::size_type, std::size_t>::value), ""); in main() [all …]
|
/external/libcxx/test/containers/unord/unord.multimap/ |
D | Android.mk | 17 test_makefile := external/libcxx/test/containers/unord/unord.multimap/Android.mk 19 test_name := containers/unord/unord.multimap/db_iterators_7 23 test_name := containers/unord/unord.multimap/swap_member 27 test_name := containers/unord/unord.multimap/bucket_size 31 test_name := containers/unord/unord.multimap/bucket_count 35 test_name := containers/unord/unord.multimap/max_load_factor 39 test_name := containers/unord/unord.multimap/db_local_iterators_7 43 test_name := containers/unord/unord.multimap/find_const 47 test_name := containers/unord/unord.multimap/max_bucket_count 51 test_name := containers/unord/unord.multimap/local_iterators [all …]
|
/external/libcxx/test/containers/associative/multimap/multimap.ops/ |
D | Android.mk | 17 test_makefile := external/libcxx/test/containers/associative/multimap/multimap.ops/Android.mk 19 test_name := containers/associative/multimap/multimap.ops/find 23 test_name := containers/associative/multimap/multimap.ops/equal_range 27 test_name := containers/associative/multimap/multimap.ops/lower_bound 31 test_name := containers/associative/multimap/multimap.ops/upper_bound 35 test_name := containers/associative/multimap/multimap.ops/count
|
/external/libcxx/test/containers/associative/multimap/multimap.special/ |
D | Android.mk | 17 test_makefile := external/libcxx/test/containers/associative/multimap/multimap.special/Android.mk 19 test_name := containers/associative/multimap/multimap.special/member_swap 23 test_name := containers/associative/multimap/multimap.special/swap_noexcept 27 test_name := containers/associative/multimap/multimap.special/non_member_swap
|