• Home
  • Raw
  • Download

Lines Matching refs:dictHandle

84     JSHandle<LinkedHashMap> dictHandle = LinkedHashMap::Create(thread, numOfElement);  in HWTEST_F_L0()  local
85 EXPECT_TRUE(*dictHandle != nullptr); in HWTEST_F_L0()
99 dictHandle = LinkedHashMap::Set(thread, dictHandle, key1, value1); in HWTEST_F_L0()
100 EXPECT_EQ(dictHandle->NumberOfElements(), 1); in HWTEST_F_L0()
103 int entry1 = dictHandle->FindElement(key1.GetTaggedValue()); in HWTEST_F_L0()
104 EXPECT_EQ(key1.GetTaggedValue(), dictHandle->GetKey(entry1)); in HWTEST_F_L0()
105 EXPECT_EQ(value1.GetTaggedValue(), dictHandle->GetValue(entry1)); in HWTEST_F_L0()
107 dictHandle = LinkedHashMap::Set(thread, dictHandle, key2, value2); in HWTEST_F_L0()
108 EXPECT_EQ(dictHandle->NumberOfElements(), 2); in HWTEST_F_L0()
110 dictHandle = LinkedHashMap::Delete(thread, dictHandle, key1); in HWTEST_F_L0()
111 EXPECT_EQ(-1, dictHandle->FindElement(key1.GetTaggedValue())); in HWTEST_F_L0()
112 EXPECT_EQ(dictHandle->NumberOfElements(), 1); in HWTEST_F_L0()
115 dictHandle = LinkedHashMap::Set(thread, dictHandle, undefinedKey, value1); in HWTEST_F_L0()
116 int entry2 = dictHandle->FindElement(undefinedKey.GetTaggedValue()); in HWTEST_F_L0()
117 EXPECT_EQ(value1.GetTaggedValue(), dictHandle->GetValue(entry2)); in HWTEST_F_L0()
162 JSHandle<LinkedHashMap> dictHandle = LinkedHashMap::Create(thread, numOfElement); in HWTEST_F_L0() local
163 EXPECT_TRUE(*dictHandle != nullptr); in HWTEST_F_L0()
173 dictHandle = LinkedHashMap::Set(thread, dictHandle, key, value); in HWTEST_F_L0()
174 EXPECT_EQ(i, dictHandle->FindElement(key.GetTaggedValue())); in HWTEST_F_L0()
183 EXPECT_EQ(i, dictHandle->FindElement(stringKey.GetTaggedValue())); in HWTEST_F_L0()
185 EXPECT_EQ(dictHandle->NumberOfElements(), 33); in HWTEST_F_L0()
186 EXPECT_EQ(dictHandle->Capacity(), 64); in HWTEST_F_L0()
225 JSHandle<LinkedHashMap> dictHandle = LinkedHashMap::Create(thread, numOfElement); in HWTEST_F_L0() local
226 EXPECT_TRUE(*dictHandle != nullptr); in HWTEST_F_L0()
236 dictHandle = LinkedHashMap::Set(thread, dictHandle, key, value); in HWTEST_F_L0()
240 dictHandle = LinkedHashMap::Delete(thread, dictHandle, key); in HWTEST_F_L0()
247 EXPECT_EQ(i, dictHandle->FindElement(stringKey.GetTaggedValue())); in HWTEST_F_L0()
249 EXPECT_EQ(dictHandle->NumberOfElements(), 9); in HWTEST_F_L0()
250 EXPECT_EQ(dictHandle->Capacity(), 16); in HWTEST_F_L0()