Home
last modified time | relevance | path

Searched refs:tset (Results 1 – 20 of 20) sorted by relevance

/arkcompiler/ets_runtime/ecmascript/tests/
Djs_api_tree_set_test.cpp103 JSHandle<JSAPITreeSet> tset(thread, CreateTreeSet()); in HWTEST_F_L0() local
108 JSAPITreeSet::Add(thread, tset, key); in HWTEST_F_L0()
110 EXPECT_EQ(tset->GetSize(), NODE_NUMBERS); in HWTEST_F_L0()
114 JSAPITreeSet::Add(thread, tset, key); in HWTEST_F_L0()
122 bool has = JSAPITreeSet::Has(thread, tset, key); in HWTEST_F_L0()
135 JSHandle<JSAPITreeSet> tset(thread, CreateTreeSet()); in HWTEST_F_L0() local
140 JSAPITreeSet::Add(thread, tset, key); in HWTEST_F_L0()
142 EXPECT_EQ(tset->GetSize(), NODE_NUMBERS); in HWTEST_F_L0()
148 bool success = JSAPITreeSet::Delete(thread, tset, key); in HWTEST_F_L0()
155 bool success = JSAPITreeSet::Delete(thread, tset, key); in HWTEST_F_L0()
[all …]
Dtagged_tree_test.cpp199 JSHandle<TaggedTreeSet> tset(thread, TaggedTreeSet::Create(thread, NODE_NUMBERS)); in HWTEST_F_L0() local
200 EXPECT_EQ(tset->Capacity(), NODE_NUMBERS); in HWTEST_F_L0()
201 EXPECT_EQ(tset->GetRootEntries(), -1); in HWTEST_F_L0()
202 EXPECT_EQ(tset->NumberOfElements(), 0); in HWTEST_F_L0()
203 EXPECT_EQ(tset->NumberOfDeletedElements(), 0); in HWTEST_F_L0()
246 JSMutableHandle<TaggedTreeSet> tset(thread, TaggedTreeSet::Create(thread, NODE_NUMBERS)); in HWTEST_F_L0() local
256 tset.Update(TaggedTreeSet::Add(thread, tset, key1)); in HWTEST_F_L0()
257 EXPECT_EQ(tset->NumberOfElements(), 1); in HWTEST_F_L0()
258 tset.Update(TaggedTreeSet::Add(thread, tset, key2)); in HWTEST_F_L0()
259 EXPECT_EQ(tset->NumberOfElements(), 2); in HWTEST_F_L0()
[all …]
/arkcompiler/ets_runtime/ecmascript/containers/tests/
Dcontainers_treeset_test.cpp187 JSHandle<JSAPITreeSet> tset = CreateJSAPITreeSet(); in HWTEST_F_L0() local
191 callInfo->SetThis(tset.GetTaggedValue()); in HWTEST_F_L0()
198 EXPECT_EQ(tset->GetSize(), i + 1); in HWTEST_F_L0()
200 EXPECT_EQ(tset->GetSize(), NODE_NUMBERS); in HWTEST_F_L0()
212 callInfo->SetThis(tset.GetTaggedValue()); in HWTEST_F_L0()
219 EXPECT_EQ(tset->GetSize(), NODE_NUMBERS + i + 1); in HWTEST_F_L0()
221 EXPECT_EQ(tset->GetSize(), NODE_NUMBERS * 2); in HWTEST_F_L0()
226 callInfo->SetThis(tset.GetTaggedValue()); in HWTEST_F_L0()
240 callInfo->SetThis(tset.GetTaggedValue()); in HWTEST_F_L0()
255 JSHandle<JSAPITreeSet> tset = CreateJSAPITreeSet(); in HWTEST_F_L0() local
[all …]
/arkcompiler/ets_runtime/test/fuzztest/containerstreesetentries_fuzzer/
Dcontainerstreesetentries_fuzzer.cpp100 JSHandle<JSAPITreeSet> tset = CreateJSAPITreeSet(thread); in ContainersTreeSetEntriesFuzzTest() local
103 callInfo->SetThis(tset.GetTaggedValue()); in ContainersTreeSetEntriesFuzzTest()
109 objCallInfo->SetThis(tset.GetTaggedValue()); in ContainersTreeSetEntriesFuzzTest()
/arkcompiler/ets_runtime/test/fuzztest/containerstreesetgetlastvalue_fuzzer/
Dcontainerstreesetgetlastvalue_fuzzer.cpp100 JSHandle<JSAPITreeSet> tset = CreateJSAPITreeSet(thread); in ContainersTreeSetGetLastValueFuzzTest() local
103 callInfo->SetThis(tset.GetTaggedValue()); in ContainersTreeSetGetLastValueFuzzTest()
109 objCallInfo->SetThis(tset.GetTaggedValue()); in ContainersTreeSetGetLastValueFuzzTest()
/arkcompiler/ets_runtime/test/fuzztest/containerstreesetisempty_fuzzer/
Dcontainerstreesetisempty_fuzzer.cpp100 JSHandle<JSAPITreeSet> tset = CreateJSAPITreeSet(thread); in ContainersTreeSetIsEmptyFuzzTest() local
103 callInfo->SetThis(tset.GetTaggedValue()); in ContainersTreeSetIsEmptyFuzzTest()
109 objCallInfo->SetThis(tset.GetTaggedValue()); in ContainersTreeSetIsEmptyFuzzTest()
/arkcompiler/ets_runtime/test/fuzztest/containerstreesetpopfirst_fuzzer/
Dcontainerstreesetpopfirst_fuzzer.cpp100 JSHandle<JSAPITreeSet> tset = CreateJSAPITreeSet(thread); in ContainersTreeSetPopFirstFuzzTest() local
103 callInfo->SetThis(tset.GetTaggedValue()); in ContainersTreeSetPopFirstFuzzTest()
109 objCallInfo->SetThis(tset.GetTaggedValue()); in ContainersTreeSetPopFirstFuzzTest()
/arkcompiler/ets_runtime/test/fuzztest/containerstreesetgetfirstvalue_fuzzer/
Dcontainerstreesetgetfirstvalue_fuzzer.cpp100 JSHandle<JSAPITreeSet> tset = CreateJSAPITreeSet(thread); in ContainersTreeSetGetFirstValueFuzzTest() local
103 callInfo->SetThis(tset.GetTaggedValue()); in ContainersTreeSetGetFirstValueFuzzTest()
109 objCallInfo->SetThis(tset.GetTaggedValue()); in ContainersTreeSetGetFirstValueFuzzTest()
/arkcompiler/ets_runtime/test/fuzztest/containerstreesetgetlowervalue_fuzzer/
Dcontainerstreesetgetlowervalue_fuzzer.cpp100 JSHandle<JSAPITreeSet> tset = CreateJSAPITreeSet(thread); in ContainersTreeSetGetLowerValueFuzzTest() local
103 callInfo->SetThis(tset.GetTaggedValue()); in ContainersTreeSetGetLowerValueFuzzTest()
109 objCallInfo->SetThis(tset.GetTaggedValue()); in ContainersTreeSetGetLowerValueFuzzTest()
/arkcompiler/ets_runtime/test/fuzztest/containerstreesetpoplast_fuzzer/
Dcontainerstreesetpoplast_fuzzer.cpp100 JSHandle<JSAPITreeSet> tset = CreateJSAPITreeSet(thread); in ContainersTreeSetPopLastFuzzTest() local
103 callInfo->SetThis(tset.GetTaggedValue()); in ContainersTreeSetPopLastFuzzTest()
109 objCallInfo->SetThis(tset.GetTaggedValue()); in ContainersTreeSetPopLastFuzzTest()
/arkcompiler/ets_runtime/test/fuzztest/containerstreesetremove_fuzzer/
Dcontainerstreesetremove_fuzzer.cpp100 JSHandle<JSAPITreeSet> tset = CreateJSAPITreeSet(thread); in ContainersTreeSetRemoveFuzzTest() local
103 callInfo->SetThis(tset.GetTaggedValue()); in ContainersTreeSetRemoveFuzzTest()
109 objCallInfo->SetThis(tset.GetTaggedValue()); in ContainersTreeSetRemoveFuzzTest()
/arkcompiler/ets_runtime/test/fuzztest/containerstreesethas_fuzzer/
Dcontainerstreesethas_fuzzer.cpp100 JSHandle<JSAPITreeSet> tset = CreateJSAPITreeSet(thread); in ContainersTreeSetHasFuzzTest() local
103 callInfo->SetThis(tset.GetTaggedValue()); in ContainersTreeSetHasFuzzTest()
109 objCallInfo->SetThis(tset.GetTaggedValue()); in ContainersTreeSetHasFuzzTest()
/arkcompiler/ets_runtime/test/fuzztest/containerstreesetclear_fuzzer/
Dcontainerstreesetclear_fuzzer.cpp100 JSHandle<JSAPITreeSet> tset = CreateJSAPITreeSet(thread); in ContainersTreeSetClearFuzzTest() local
103 callInfo->SetThis(tset.GetTaggedValue()); in ContainersTreeSetClearFuzzTest()
109 objCallInfo->SetThis(tset.GetTaggedValue()); in ContainersTreeSetClearFuzzTest()
/arkcompiler/ets_runtime/test/fuzztest/containerstreesetgethighervalue_fuzzer/
Dcontainerstreesetgethighervalue_fuzzer.cpp100 JSHandle<JSAPITreeSet> tset = CreateJSAPITreeSet(thread); in ContainersTreeSetGetHigherValueFuzzTest() local
103 callInfo->SetThis(tset.GetTaggedValue()); in ContainersTreeSetGetHigherValueFuzzTest()
109 objCallInfo->SetThis(tset.GetTaggedValue()); in ContainersTreeSetGetHigherValueFuzzTest()
/arkcompiler/ets_runtime/test/fuzztest/containerstreesetgetlength_fuzzer/
Dcontainerstreesetgetlength_fuzzer.cpp100 JSHandle<JSAPITreeSet> tset = CreateJSAPITreeSet(thread); in ContainersTreeSetGetLengthFuzzTest() local
103 callInfo->SetThis(tset.GetTaggedValue()); in ContainersTreeSetGetLengthFuzzTest()
109 objCallInfo->SetThis(tset.GetTaggedValue()); in ContainersTreeSetGetLengthFuzzTest()
/arkcompiler/ets_runtime/test/fuzztest/containerstreesetvalues_fuzzer/
Dcontainerstreesetvalues_fuzzer.cpp100 JSHandle<JSAPITreeSet> tset = CreateJSAPITreeSet(thread); in ContainersTreeSetValuesFuzzTest() local
103 callInfo->SetThis(tset.GetTaggedValue()); in ContainersTreeSetValuesFuzzTest()
109 objCallInfo->SetThis(tset.GetTaggedValue()); in ContainersTreeSetValuesFuzzTest()
/arkcompiler/ets_runtime/test/fuzztest/containerstreesetforeach_fuzzer/
Dcontainerstreesetforeach_fuzzer.cpp106 JSHandle<JSAPITreeSet> tset = CreateJSAPITreeSet(thread); in ContainersTreeSetForEachFuzzTest() local
109 callInfo->SetThis(tset.GetTaggedValue()); in ContainersTreeSetForEachFuzzTest()
119 objCallInfo->SetThis(tset.GetTaggedValue()); in ContainersTreeSetForEachFuzzTest()
/arkcompiler/ets_runtime/ecmascript/containers/
Dcontainers_treeset.cpp233 JSHandle<TaggedTreeSet> tset(thread, set->GetTreeSet()); in GetLowerValue() local
234 return TaggedTreeSet::GetLowerKey(thread, tset, key); in GetLowerValue()
264 JSHandle<TaggedTreeSet> tset(thread, set->GetTreeSet()); in GetHigherValue() local
265 return TaggedTreeSet::GetHigherKey(thread, tset, key); in GetHigherValue()
379 JSHandle<JSAPITreeSet> tset = JSHandle<JSAPITreeSet>::Cast(self); in ForEach() local
380 JSMutableHandle<TaggedTreeSet> iteratedSet(thread, tset->GetTreeSet()); in ForEach()
398 if (tset->GetSize() != static_cast<int>(length)) { in ForEach()
399 iteratedSet.Update(tset->GetTreeSet()); in ForEach()
/arkcompiler/ets_runtime/test/fuzztest/containerstreesetconstructor_fuzzer/
Dcontainerstreesetconstructor_fuzzer.cpp100 JSHandle<JSAPITreeSet> tset = CreateJSAPITreeSet(thread); in ContainersTreeSetConstructorFuzzTest() local
103 callInfo->SetThis(tset.GetTaggedValue()); in ContainersTreeSetConstructorFuzzTest()
/arkcompiler/ets_runtime/test/fuzztest/containerstreesetadd_fuzzer/
Dcontainerstreesetadd_fuzzer.cpp100 JSHandle<JSAPITreeSet> tset = CreateJSAPITreeSet(thread); in ContainersTreeSetAddFuzzTest() local
103 callInfo->SetThis(tset.GetTaggedValue()); in ContainersTreeSetAddFuzzTest()