| /arkcompiler/runtime_core/static_core/tests/vm-benchmarks/tests/ |
| D | test_gc_ark_pause.py | 37 self.assertEqual(line, pev.raw_message, 'GC message is correct') 38 self.assertEqual('G1', pev.gc_name, 'GC name is correct') 40 'timestamp is correct') 41 self.assertEqual(4234, pev.freed_object_count, 'freed objects count is correct') 42 self.assertEqual(4 * 1024 * 1024, pev.freed_object_mem, 'freed objects memory is correct') 43 self.assertEqual(0, pev.freed_large_object_count, 'freed large objects count is correct') 44 self.assertEqual(0, pev.freed_large_object_mem, 'freed large objects memory is correct') 45 self.assertEqual(46 * 1024 * 1024, pev.mem_after, 'memory after gc is correct') 46 self.assertEqual(256 * 1024 * 1024, pev.mem_total, 'memory total is correct') 47 self.assertEqual(335100.0, pev.pause_time, 'pause time is correct') [all …]
|
| /arkcompiler/ets_frontend/ets2panda/ast_verifier/invariants/ |
| D | checkScopeDeclaration.cpp | 26 return {CheckDecision::CORRECT, CheckAction::CONTINUE}; in operator ()() 33 return {CheckDecision::CORRECT, CheckAction::CONTINUE}; in operator ()() 39 return {CheckDecision::CORRECT, CheckAction::CONTINUE}; in operator ()() 50 return {CheckDecision::CORRECT, CheckAction::CONTINUE}; in CheckScope() 59 return {CheckDecision::CORRECT, CheckAction::CONTINUE}; in CheckScope() 65 return {CheckDecision::CORRECT, CheckAction::CONTINUE}; in CheckScope() 75 return {CheckDecision::CORRECT, CheckAction::CONTINUE}; in CheckScope() 82 return {CheckDecision::CORRECT, CheckAction::CONTINUE}; in CheckScope()
|
| D | arithmeticOperationValid.cpp | 32 return {CheckDecision::CORRECT, CheckAction::CONTINUE}; in operator ()() 37 return {CheckDecision::CORRECT, CheckAction::CONTINUE}; in operator ()() 39 auto result = std::make_tuple(CheckDecision::CORRECT, CheckAction::CONTINUE); in operator ()() 56 return {CheckDecision::CORRECT, CheckAction::SKIP_SUBTREE}; in CheckCompound() 62 return {CheckDecision::CORRECT, CheckAction::SKIP_SUBTREE}; in CheckCompound() 68 return {CheckDecision::CORRECT, CheckAction::SKIP_SUBTREE}; in CheckCompound() 70 return {CheckDecision::CORRECT, CheckAction::CONTINUE}; in CheckCompound()
|
| D | variableNameIdentifierNameSame.cpp | 26 return {CheckDecision::CORRECT, CheckAction::CONTINUE}; in operator ()() 31 return {CheckDecision::CORRECT, CheckAction::CONTINUE}; in operator ()() 37 return {CheckDecision::CORRECT, CheckAction::CONTINUE}; in operator ()() 40 return {CheckDecision::CORRECT, CheckAction::CONTINUE}; in operator ()() 51 return {CheckDecision::CORRECT, CheckAction::CONTINUE}; in operator ()()
|
| D | modifierAccessValid.cpp | 32 return {CheckDecision::CORRECT, CheckAction::CONTINUE}; in operator ()() 38 return {CheckDecision::CORRECT, CheckAction::CONTINUE}; in HandleMethodExpression() 46 return {CheckDecision::CORRECT, CheckAction::CONTINUE}; in HandleMethodExpression() 52 return {CheckDecision::CORRECT, CheckAction::CONTINUE}; in HandleCallExpression() 65 return {CheckDecision::CORRECT, CheckAction::CONTINUE}; in HandleCallExpression()
|
| D | forLoopCorrectlyInitialized.cpp | 36 return {CheckDecision::CORRECT, CheckAction::CONTINUE}; in operator ()() 52 return {CheckDecision::CORRECT, CheckAction::CONTINUE}; in HandleForInStatement() 68 return {CheckDecision::CORRECT, CheckAction::CONTINUE}; in HandleForOfStatement() 81 return {CheckDecision::CORRECT, CheckAction::CONTINUE}; in HandleForUpdateStatement() 89 return {CheckDecision::CORRECT, CheckAction::CONTINUE}; in HandleForUpdateStatement()
|
| D | variableHasEnclosingScope.cpp | 25 return {CheckDecision::CORRECT, CheckAction::CONTINUE}; in operator ()() 29 return {CheckDecision::CORRECT, CheckAction::CONTINUE}; in operator ()() 42 auto result = std::make_tuple(CheckDecision::CORRECT, CheckAction::CONTINUE); in operator ()() 45 return {CheckDecision::CORRECT, CheckAction::CONTINUE}; in operator ()() 49 return {CheckDecision::CORRECT, CheckAction::CONTINUE}; in operator ()()
|
| D | referenceTypeAnnotationIsNull.cpp | 26 return {CheckDecision::CORRECT, CheckAction::CONTINUE}; in operator ()() 29 // We are running AST verifier only for ETS files so it is correct to pass ETS extension here in operator ()() 36 return {CheckDecision::CORRECT, CheckAction::CONTINUE}; in operator ()()
|
| D | checkAbstractMethod.cpp | 26 return {CheckDecision::CORRECT, CheckAction::CONTINUE}; in operator ()() 31 return {CheckDecision::CORRECT, CheckAction::CONTINUE}; in operator ()() 41 return {CheckDecision::CORRECT, CheckAction::CONTINUE}; in operator ()()
|
| D | sequenceExpressionHasLastType.cpp | 27 return {CheckDecision::CORRECT, CheckAction::SKIP_SUBTREE}; in operator ()() 30 return {CheckDecision::CORRECT, CheckAction::CONTINUE}; in operator ()() 46 return {CheckDecision::CORRECT, CheckAction::CONTINUE}; in operator ()()
|
| D | identifierHasVariable.cpp | 98 return {CheckDecision::CORRECT, CheckAction::SKIP_SUBTREE}; in operator ()() 101 return {CheckDecision::CORRECT, CheckAction::CONTINUE}; in operator ()() 105 return {CheckDecision::CORRECT, CheckAction::CONTINUE}; in operator ()() 110 return {CheckDecision::CORRECT, CheckAction::CONTINUE}; in operator ()()
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets_sdk/api/@ohos/util/TreeSet/ |
| D | TreeSetGetFirstValueGetLastValueTest.ets | 55 assertEQ(result1, "aa", "The treeSet should return the correct first value"); 56 assertEQ(result2, "bb", "The treeSet should return the correct last value"); 76 assertEQ(result1, "aa", "The treeSet should return the correct first value"); 77 assertEQ(result2, "aa", "The treeSet should return the correct last value"); 90 assertEQ(result1, "dd", "The treeSet should return the correct first value"); 91 assertEQ(result2, "aa", "The treeSet should return the correct last value"); 108 assertEQ(result1, obj, "The treeSet should return the correct first value"); 109 assertEQ(result2, obj_trd, "The treeSet should return the correct last value"); 122 assertEQ(result1, obj, "The treeSet should return the correct first value"); 123 assertEQ(result2, obj, "The treeSet should return the correct last value");
|
| D | TreeSetGetLowerValueGetHigherValueTest.ets | 69 assertEQ(lower, "aa", "The treeSet should return the correct lower value"); 70 assertEQ(lower_, "bb", "The treeSet should return the correct lower value"); 71 assertEQ(higher, "bb", "The treeSet should return the correct higher value"); 72 assertEQ(higher_, "cc", "The treeSet should return the correct higher value"); 116 assertEQ(lower, "ee", "The treeSet should return the correct lower value"); 117 assertEQ(higher, "gg", "The treeSet should return the correct higher value"); 160 assertTrue(equalObjects(lower!, obj), "The treeSet should return the correct lower value"); 161 assertTrue(equalObjects(lower_!, obj_sec), "The treeSet should return the correct lower value"); 162 … assertTrue(equalObjects(higher!, obj_sec), "The treeSet should return the correct higher value"); 163 … assertTrue(equalObjects(higher_!, obj_trd), "The treeSet should return the correct higher value");
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets_sdk/api/@ohos/util/TreeMap/ |
| D | TreeMapGetFirstKeyGetLastKeyTest.ets | 58 assertEQ(first, "aa", "The treeMap should return the correct first key"); 59 assertEQ(last, "cc", "The treeMap should return the correct last key"); 83 assertEQ(first, "aa", "The treeMap should return the correct first key"); 84 assertEQ(last, "aa", "The treeMap should return the correct last key"); 98 assertEQ(first, "cc", "The treeMap should return the correct first key"); 99 assertEQ(last, "aa", "The treeMap should return the correct last key"); 119 assertEQ(first, obj, "The treeMap should return the correct first key"); 120 assertEQ(last, obj_trd, "The treeMap should return the correct last key"); 134 assertEQ(first, obj, "The treeMap should return the correct first key"); 135 assertEQ(last, obj, "The treeMap should return the correct last key");
|
| D | TreeMapGetLowerKeyGetHigherKeyTest.ets | 68 assertEQ(lower, "aa", "The treeMap should return the correct lower key"); 69 assertEQ(lower_, "bb", "The treeMap should return the correct lower key"); 70 assertEQ(higher, "bb", "The treeMap should return the correct higher key"); 71 assertEQ(higher_, "cc", "The treeMap should return the correct higher key"); 121 assertEQ(lower, "ee", "The treeMap should return the correct lower key"); 122 assertEQ(higher, "gg", "The treeMap should return the correct higher key"); 157 assertTrue(equalObjects(lower!, obj!), "The treeMap should return the correct lower key"); 158 assertTrue(equalObjects(lower_!, obj_sec!), "The treeMap should return the correct lower key"); 159 assertTrue(equalObjects(higher!, obj_sec!), "The treeMap should return the correct higher key"); 160 … assertTrue(equalObjects(higher_!, obj_trd!), "The treeMap should return the correct higher key");
|
| D | TreeMapKeysValuesIteratorTest.ets | 48 assertEQ(it.next().value, "aa", "The treeMap should return the correct key"); 49 assertEQ(it.next().value, "bb", "The treeMap should return the correct key"); 70 assertEQ(it.next().value, "123", "The treeMap should return the correct value"); 71 assertEQ(it.next().value, "456", "The treeMap should return the correct value"); 102 assertEQ(str, strAll, "The treeMap should return the correct iterator");
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets_sdk/api/@ohos/util/Stack/ |
| D | StackLocateForEachIteratorTests.ets | 55 …assertEQ(stack.locate(TestData.testNumber1), 0, "Locate should return the correct index of the ele… 57 "Locate should return the correct index of the element"); 68 "Locate should return the correct index of the element"); 97 …ertEQ(value, TestData.forNumber[forEachCount], "ForEach should iterate elements in correct order"); 108 …ertEQ(value, TestData.forNumber[forEachCount], "ForEach should iterate elements in correct order"); 109 assertEQ(index, forEachCount, "ForEach should iterate elements in correct order"); 121 …ertEQ(value, TestData.forNumber[forEachCount], "ForEach should iterate elements in correct order"); 122 assertEQ(index, forEachCount, "ForEach should iterate elements in correct order"); 123 …assertEQ(stack.locate(value), tempStack.locate(value), "Locate should return the correct index of … 140 …ertEQ(value, TestData.forNumber[forEachCount], "ForEach should iterate elements in correct order"); [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets_func_tests/std/core/json/ |
| D | JsonElementTest.ets | 168 arktest.assertEQ(nameElem.asString(), "John Doe", "getElement() should return correct element"); 178 …arktest.assertEQ(ageElem?.asInteger(), 30, "Element from tryGetElement() should have correct value… 235 arktest.assertEQ(arr[0].asString(), "item1", "First array element should be correct"); 236 arktest.assertEQ(arr[1].asInteger(), 42, "Second array element should be correct"); 237 arktest.assertTrue(arr[2].asBoolean(), "Third array element should be correct"); 241 …arktest.assertEQ(firstElement.asString(), "item1", "$_get should return correct element at index"); 244 arktest.assertEQ(secondElement.asInteger(), 42, "$_get should return correct element at index"); 432 …arktest.assertEQ(userElem.getInteger("id"), 1001, "Complex object should have correct integer prop… 433 …userElem.getString("name"), "Alice Johnson", "Complex object should have correct string property"); 434 …arktest.assertTrue(userElem.getBoolean("active"), "Complex object should have correct boolean prop… [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets_sdk/api/@ohos/util/LightWeightMap/ |
| D | LightWeightMapIteratorGetIndexOfKeyGetIndexOfValueTest.ets | 59 … assertEQ(str, strAll, "The lightWeightMap $_iterator should return the correct key-value pairs"); 75 assertEQ(result1, 1, "The lightWeightMap should return the correct index for the key"); 76 assertEQ(result2, 0, "The lightWeightMap should return the correct index for the value"); 103 assertEQ(result1, 1, "The lightWeightMap should return the correct index for the key"); 116 assertNE(result1, -1, "The lightWeightMap should return the correct index for the key"); 117 assertNE(result2, -1, "The lightWeightMap should return the correct index for the value"); 142 assertNE(result1, -1, "The lightWeightMap should return the correct index for the key"); 143 assertNE(result2, -1, "The lightWeightMap should return the correct index for the value");
|
| D | LightWeightMapSetGetTest.ets | 43 assertEQ(result, 123, "The lightWeightMap should return the correct value for the key"); 51 …assertEQ(result, Number.MAX_VALUE, "The lightWeightMap should return the correct value for the key… 59 assertEQ(result, 356, "The lightWeightMap should return the correct value for the key"); 101 assertEQ(result, value, "The lightWeightMap should return the correct value for the key"); 120 assertEQ(result, 123, "The lightWeightMap should return the correct value for the complex key"); 128 assertEQ(result, 123, "The lightWeightMap should return the correct value for the special key"); 137 assertEQ(result, 456, "The lightWeightMap should return the correct value for the key"); 145 assertEQ(result, 123, "The lightWeightMap should return the correct value for the key");
|
| D | LightWeightMapGetKeyAtTest.ets | 42 …assertEQ(result, "test", "The lightWeightMap should return the correct key at the specified index"… 51 …assertEQ(result, "sparrow", "The lightWeightMap should return the correct key at the boundary inde… 93 …assertEQ(result, "test", "The lightWeightMap should return the correct key at the floored left flo… 102 …assertEQ(result, "test", "The lightWeightMap should return the correct key at the floored right fl…
|
| /arkcompiler/runtime_core/static_core/libpandabase/taskmanager/utils/ |
| D | sp_mc_lock_free_queue.h | 74 // Atomic with acq_rel order reason: other threads should see correct value in PopUserScope() 79 // Atomic with acq_rel order reason: other threads should see correct value in ~PopUserScope() 158 // Atomic with acquire order reason: getting correct value of popUserCount in GetPopUserCount() 165 * @return correct value of atomicPtr 193 // Atomic with acq_rel order reason: other threads should be correct value in TryMovePopIndex() 208 // Atomic with acq_rel order reason: other threads should be correct value in CompareAndSetNextHead() 237 // Atomic with release order reason: other threads should see correct value in SPMCLockFreeQueue() 239 // Atomic with release order reason: other threads should see correct value in SPMCLockFreeQueue() 258 // Atomic with acq_rel order reason: other threads should be correct value in RegisterConsumer() 301 // Atomic with release order reason: other threads should see correct value in Push() [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/playground/frontend/src/pages/disasmView/ |
| D | DisasmCode.test.tsx | 56 it('applies correct theme based on context', () => { 61 it('applies correct theme based on context light', () => { 66 it('applies correct run loading', () => { 77 it('applies correct compile loading', () => { 88 it('applies correct disasm code', () => {
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets_sdk/api/@ohos/util/PlainArray/ |
| D | PlainArrayGetValueAtGetKeyAtTests.ets | 51 "The plainArray should return the correct key at the specified index"); 57 assertEQ(plainArray.getKeyAt(0), 0, "The plainArray should return the correct key at index 0"); 59 "The plainArray should return the correct key at index length - 1"); 102 "The plainArray should return the correct value at the specified index"); 108 …assertEQ(plainArray.getValueAt(0), 0, "The plainArray should return the correct value at index 0"); 110 "The plainArray should return the correct value at index length - 1");
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets_sdk/arkts/@arkts/collections/BitVector/ |
| D | valuesSetAllBitsTests.ets | 21 …suite.addTest("Verify if values method returns a correct iterator for BitVector with mixed bits.",… 22 …suite.addTest("Verify if values method returns a correct iterator for BitVector with 64 zeroes.", … 23 …suite.addTest("Verify if values method returns a correct iterator for BitVector with initial lengt… 34 * @tc.desc : Verify if values method returns a correct iterator for BitVector with mixed bits. 54 assertEQ(vec.length, a.length, "Iterator should return the correct number of elements"); 63 * @tc.desc : Verify if values method returns a correct iterator for BitVector with 64 zeroes. 83 assertEQ(vec.length, bitVectorLength, "Iterator should return correct number of elements"); 92 …* @tc.desc : Verify if values method returns a correct iterator for BitVector with initial le… 112 assertEQ(vec.length, bitVectorLength + 10, "Iterator should return correct number of elements");
|