Home
last modified time | relevance | path

Searched refs:testMap (Results 1 – 25 of 33) sorted by relevance

12

/external/angle/src/common/
DFastVector_unittest.cpp246 FastUnorderedMap<int, bool, 3> testMap; in TEST() local
247 EXPECT_TRUE(testMap.empty()); in TEST()
248 EXPECT_EQ(testMap.size(), 0u); in TEST()
250 testMap.insert(5, true); in TEST()
251 EXPECT_TRUE(testMap.contains(5)); in TEST()
252 EXPECT_EQ(testMap.size(), 1u); in TEST()
255 EXPECT_TRUE(testMap.get(5, &value)); in TEST()
257 EXPECT_FALSE(testMap.get(6, &value)); in TEST()
259 EXPECT_FALSE(testMap.empty()); in TEST()
260 testMap.clear(); in TEST()
[all …]
/external/llvm/unittests/ADT/
DStringMapTest.cpp22 StringMap<uint32_t> testMap; member in __anon4fa0284b0111::StringMapTest
32 EXPECT_EQ(0u, testMap.size()); in assertEmptyMap()
33 EXPECT_TRUE(testMap.empty()); in assertEmptyMap()
36 EXPECT_TRUE(testMap.begin() == testMap.end()); in assertEmptyMap()
39 EXPECT_EQ(0u, testMap.count(testKey)); in assertEmptyMap()
40 EXPECT_EQ(0u, testMap.count(StringRef(testKeyFirst, testKeyLength))); in assertEmptyMap()
41 EXPECT_EQ(0u, testMap.count(testKeyStr)); in assertEmptyMap()
42 EXPECT_TRUE(testMap.find(testKey) == testMap.end()); in assertEmptyMap()
43 EXPECT_TRUE(testMap.find(StringRef(testKeyFirst, testKeyLength)) == in assertEmptyMap()
44 testMap.end()); in assertEmptyMap()
[all …]
/external/llvm-project/llvm/unittests/ADT/
DStringMapTest.cpp22 StringMap<uint32_t> testMap; member in __anonda4488990111::StringMapTest
32 EXPECT_EQ(0u, testMap.size()); in assertEmptyMap()
33 EXPECT_TRUE(testMap.empty()); in assertEmptyMap()
36 EXPECT_TRUE(testMap.begin() == testMap.end()); in assertEmptyMap()
39 EXPECT_EQ(0u, testMap.count(testKey)); in assertEmptyMap()
40 EXPECT_EQ(0u, testMap.count(StringRef(testKeyFirst, testKeyLength))); in assertEmptyMap()
41 EXPECT_EQ(0u, testMap.count(testKeyStr)); in assertEmptyMap()
42 EXPECT_TRUE(testMap.find(testKey) == testMap.end()); in assertEmptyMap()
43 EXPECT_TRUE(testMap.find(StringRef(testKeyFirst, testKeyLength)) == in assertEmptyMap()
44 testMap.end()); in assertEmptyMap()
[all …]
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/deser/merge/
DMapMerge1844Test.java56 TestMap1844 testMap = mapper.readerFor(TestMap1844.class).readValue(f1); in testMap1844() local
57 testMap = mapper.readerForUpdating(testMap).readValue(f2); in testMap1844()
59 assertEquals(Integer.valueOf(2), testMap.getMapStringInteger().get("1")); in testMap1844()
60 assertEquals(Integer.valueOf(3), testMap.getMapStringInteger().get("2")); in testMap1844()
61 assertEquals(Integer.valueOf(3), testMap.getMapStringInteger().get("3")); in testMap1844()
62 assertEquals(Integer.valueOf(5), testMap.getMapStringInteger().get("4")); in testMap1844()
64 assertEquals(Integer.valueOf(2), testMap.getMapIntegerInteger().get(1)); in testMap1844()
65 assertEquals(Integer.valueOf(3), testMap.getMapIntegerInteger().get(2)); in testMap1844()
66 assertEquals(Integer.valueOf(3), testMap.getMapIntegerInteger().get(3)); in testMap1844()
67 assertEquals(Integer.valueOf(5), testMap.getMapIntegerInteger().get(4)); in testMap1844()
/external/webrtc/sdk/android/native_unittests/org/webrtc/
DJavaTypesTestHelper.java19 Map<String, String> testMap = new HashMap<String, String>(); in createTestStringMap() local
20 testMap.put("one", "1"); in createTestStringMap()
21 testMap.put("two", "2"); in createTestStringMap()
22 testMap.put("three", "3"); in createTestStringMap()
23 return testMap; in createTestStringMap()
/external/llvm-project/libcxx/test/std/containers/associative/
Diterator_types.pass.cpp19 void testMap() { in testMap() function
57 testMap<Map, ValueTp, ValueTp*, ValueTp const*>(); in main()
63 testMap<Map, ValueTp, ValueTp*, ValueTp const*>(); in main()
70 testMap<Map, ValueTp, min_pointer<ValueTp>, min_pointer<const ValueTp>>(); in main()
76 testMap<Map, ValueTp, ValueTp*, ValueTp const*>(); in main()
82 testMap<Map, ValueTp, ValueTp*, ValueTp const*>(); in main()
89 testMap<Map, ValueTp, min_pointer<ValueTp>, min_pointer<const ValueTp>>(); in main()
/external/libcxx/test/std/containers/associative/
Diterator_types.pass.cpp20 void testMap() { in testMap() function
58 testMap<Map, ValueTp, ValueTp*, ValueTp const*>(); in main()
64 testMap<Map, ValueTp, ValueTp*, ValueTp const*>(); in main()
71 testMap<Map, ValueTp, min_pointer<ValueTp>, min_pointer<const ValueTp>>(); in main()
77 testMap<Map, ValueTp, ValueTp*, ValueTp const*>(); in main()
83 testMap<Map, ValueTp, ValueTp*, ValueTp const*>(); in main()
90 testMap<Map, ValueTp, min_pointer<ValueTp>, min_pointer<const ValueTp>>(); in main()
/external/auto/value/src/it/functional/src/test/java/com/google/auto/value/
DSimpleValueTypeTest.java35 final Map<String, Long> testMap = ImmutableMap.of("happy", 23L); in testSimpleValueType() local
36 SimpleValueType simple = SimpleValueType.create(happy, testInt, testMap); in testSimpleValueType()
39 assertSame(testMap, simple.map()); in testSimpleValueType()
44 expectedHashCode = (expectedHashCode * 1000003) ^ testMap.hashCode(); in testSimpleValueType()
/external/auto/value/src/it/functional/src/test/java/
DPackagelessValueTypeTest.java34 final Map<String, Long> testMap = ImmutableMap.of("happy", 23L); in testPackagelessValueType() local
35 PackagelessValueType simple = PackagelessValueType.create(happy, testInt, testMap); in testPackagelessValueType()
38 assertSame(testMap, simple.map()); in testPackagelessValueType()
44 expectedHashCode = (expectedHashCode * 1000003) ^ testMap.hashCode(); in testPackagelessValueType()
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/util/
DTrieMapTest.java164 …public long timeIteration(Map<String, Integer> testMap, long comparisonTime, Style style, double r… in timeIteration() argument
165 TrieMap<Integer> trieMap = TrieMap.BytesBuilder.with(style, Option.SMALL, testMap).build(); in timeIteration()
166 TreeMap<String,Integer> expected = new TreeMap<String, Integer>(testMap); in timeIteration()
171 …= comparisonTime == 0 ? new TreeMap<String, Integer>(testMap) : new HashMap<String, Integer>(testM… in timeIteration()
185 …logln("\titeration time\tTREEMAP\tn/a\t" + t.toString(testMap.size()) + "\t\titerations=" + t.getI… in timeIteration()
187 …logln("\titeration time\tHASHMAP\tn/a\t" + t.toString(testMap.size(), comparisonTime) + "\titerati… in timeIteration()
202 …logln("\titeration time\t" + style + "\tn/a\t" + t.toString(testMap.size(), comparisonTime) + "\ti… in timeIteration()
217 public void checkContents(Map<String, Integer> testMap, Style style) { in checkContents() argument
218 if (testMap.size() == 0) { in checkContents()
221 TrieMap<Integer> trieMap = TrieMap.BytesBuilder.with(style, Option.SMALL, testMap).build(); in checkContents()
[all …]
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/util/
DTrieMapTest.java167 …public long timeIteration(Map<String, Integer> testMap, long comparisonTime, Style style, double r… in timeIteration() argument
168 TrieMap<Integer> trieMap = TrieMap.BytesBuilder.with(style, Option.SMALL, testMap).build(); in timeIteration()
169 TreeMap<String,Integer> expected = new TreeMap<String, Integer>(testMap); in timeIteration()
174 …= comparisonTime == 0 ? new TreeMap<String, Integer>(testMap) : new HashMap<String, Integer>(testM… in timeIteration()
188 …logln("\titeration time\tTREEMAP\tn/a\t" + t.toString(testMap.size()) + "\t\titerations=" + t.getI… in timeIteration()
190 …logln("\titeration time\tHASHMAP\tn/a\t" + t.toString(testMap.size(), comparisonTime) + "\titerati… in timeIteration()
205 …logln("\titeration time\t" + style + "\tn/a\t" + t.toString(testMap.size(), comparisonTime) + "\ti… in timeIteration()
220 public void checkContents(Map<String, Integer> testMap, Style style) { in checkContents() argument
221 if (testMap.size() == 0) { in checkContents()
224 TrieMap<Integer> trieMap = TrieMap.BytesBuilder.with(style, Option.SMALL, testMap).build(); in checkContents()
[all …]
/external/llvm-project/compiler-rt/lib/scudo/standalone/tests/
Dbytemap_test.cpp16 template <typename T> void testMap(T &Map, scudo::uptr Size) { in testMap() function
31 testMap(Map, Size); in TEST()
/external/scudo/standalone/tests/
Dbytemap_test.cpp16 template <typename T> void testMap(T &Map, scudo::uptr Size) { in testMap() function
31 testMap(Map, Size); in TEST()
/external/protobuf/javanano/src/test/java/com/google/protobuf/nano/
DNanoTest.java4161 TestMap testMap = new TestMap(); in testMapMergeEmptyEntry() local
4174 testMap.mergeFrom(input); in testMapMergeEmptyEntry()
4175 assertNotNull(testMap.int32ToInt32Field);; in testMapMergeEmptyEntry()
4176 assertEquals(1, testMap.int32ToInt32Field.size()); in testMapMergeEmptyEntry()
4177 assertEquals(Integer.valueOf(0), testMap.int32ToInt32Field.get(0)); in testMapMergeEmptyEntry()
4178 assertNotNull(testMap.int32ToMessageField); in testMapMergeEmptyEntry()
4179 assertEquals(1, testMap.int32ToMessageField.size()); in testMapMergeEmptyEntry()
4180 TestMap.MessageValue messageValue = testMap.int32ToMessageField.get(0); in testMapMergeEmptyEntry()
4356 private void setMapMessage(TestMap testMap) { in setMapMessage() argument
4357 testMap.int32ToInt32Field = new HashMap<Integer, Integer>(); in setMapMessage()
[all …]
/external/snakeyaml/src/test/java/org/yaml/snakeyaml/issues/issue143/
DGenericMapTest.java25 public void testMap() throws Exception { in testMap() method in GenericMapTest
/external/snakeyaml/src/test/java/examples/
DCustomMapExampleTest.java27 public void testMap() { in testMap() method in CustomMapExampleTest
/external/kotlinx.coroutines/kotlinx-coroutines-core/common/test/flow/operators/
DMapNotNullTest.kt13 fun testMap() = runTest { in <lambda>() method in kotlinx.coroutines.flow.MapNotNullTest
DMapTest.kt13 fun testMap() = runTest { in <lambda>() method
/external/boringssl/src/crypto/cipher_extra/test/nist_cavp/
Dmake_cavp.go210 var testMap = map[string]Test{ var
277 test, ok := testMap[*cipher]
/external/snakeyaml/src/test/java/org/yaml/snakeyaml/types/
DMapTagTest.java28 public void testMap() { in testMap() method in MapTagTest
/external/clang/test/Analysis/inlining/
Dfalse-positive-suppression.cpp70 void testMap(Map &m, int i) { in testMap() function
/external/llvm-project/clang/test/Analysis/inlining/
Dfalse-positive-suppression.cpp70 void testMap(Map &m, int i) { in testMap() function
/external/guava/guava-tests/test/com/google/common/collect/
DCollectSpliteratorsTest.java33 public void testMap() { in testMap() method in CollectSpliteratorsTest
/external/tensorflow/tensorflow/python/data/kernel_tests/
Dmemory_cleanup_test.py174 def testMap(self, num_parallel_calls): member in MemoryCleanupTest
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/jsontype/deftyping/
DTestDefaultForMaps.java142 public void testMap() throws Exception in testMap() method in TestDefaultForMaps

12