| /arkcompiler/ets_frontend/ets2panda/test/runtime/ets/namespace_tests/ |
| D | namespace_execution_statements_test01.ets | 18 export let counter = 0; 22 counter = counter + 5; 26 counter++; 35 if (counter > 5) { 36 message = "Counter is greater than 5"; 38 message = "Counter is less than or equal to 5"; 53 counter = 0; 55 counter = counter + 5; // Reapply the assignment expression 64 assertEQ(ComprehensiveNamespace.counter, 5, "Counter should be 5 after assignment") 71 assertEQ(ComprehensiveNamespace.counter, 6, "Counter should be 6 after increment") [all …]
|
| D | namespace_basic.ets | 22 export let counter = 0; 26 if (counter < maxCounter) { 27 counter++; 33 // Reset counter to ensure clean state for each execution 34 BasicNamespace.counter = 0; 38 assertEQ(BasicNamespace.counter, 0, "Initial counter value is incorrect") 42 assertEQ(BasicNamespace.counter, 1, "Counter increment failed")
|
| /arkcompiler/runtime_core/libpandabase/tests/ |
| D | worker_queue_test.cpp | 46 explicit CountingJob(std::atomic<int>& counter) : counter_(counter) {} in CountingJob() argument 69 std::atomic<int> counter(0); variable 72 auto* job = new CountingJob(counter); 77 EXPECT_EQ(counter, 1); 82 std::atomic<int> counter(0); variable 86 queue->AddJob(new CountingJob(counter)); 93 EXPECT_EQ(counter, 5); 98 std::atomic<int> counter(0); variable 102 auto* job1 = new CountingJob(counter); 103 auto* job2 = new CountingJob(counter); [all …]
|
| /arkcompiler/ets_frontend/arkguard/test/grammar/interface_validation/ |
| D | interface_mix_type.ts | 19 interface Counter { interface 27 function getCounter(): Counter { 28 const counter = <Counter>function (start: number) { }; constant 29 counter.interval = 10; 30 counter.reset = function ():void { 31 counter.interval = 30 33 return counter;
|
| /arkcompiler/runtime_core/static_core/libpandabase/tests/taskmanager/ |
| D | task_test.cpp | 36 size_t counter = 0; in TEST_F() local 43 // Add COUNT_OF_TASKS tasks in queue-> Each task increment counter. in TEST_F() 46 queue->AddBackgroundTask([&counter]() { counter++; }); in TEST_F() 57 EXPECT_EQ(counter, i + 1); in TEST_F() 69 // Add in queue counter_of_tasks new tasks-> Each add 2 to counter in TEST_F() 71 queue->AddBackgroundTask([&counter]() { counter += 2U; }); in TEST_F() 81 // After all task is done, counter = 3 * COUNT_OF_TASKS in TEST_F() 82 EXPECT_EQ(counter, 3 * COUNT_OF_TASKS); in TEST_F() 91 std::atomic_size_t counter = 0; in TEST_F() local 93 auto pusher = [&queue, &counter]() { in TEST_F() [all …]
|
| /arkcompiler/runtime_core/static_core/runtime/tooling/ |
| D | perf_counter.cpp | 231 for (auto &[desc, counter] : counters_) { in ~PerfCollector() 232 auto data = counter.GetData(); in ~PerfCollector() 243 for (auto &[desc, counter] : counters_) { in Reset() 244 counter.Reset(); in Reset() 250 for (auto &[desc, counter] : counters_) { in Enable() 251 counter.Enable(); in Enable() 257 for (auto &[desc, counter] : counters_) { in Disable() 258 counter.Disable(); in Disable() 280 …virtual void Report(std::ostream &out, const char *title, CounterValue counter, const Perf *p) con… 292 static void ReportLongCounter(std::ostream &out, const char *title, CounterValue counter); [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/debugger/src/tests/ |
| D | test_runtime_capture.py | 69 counter = -1 73 counter, stop = _check(bp.label, expect, paused, counter) 78 def _check(bp_label: str | None, expect: Expect, paused: PausedStep, counter: int) -> tuple[int, bo… 81 counter = 0 86 assert [arkts_str(counter)] == paused.capture.stdout 87 counter += 1 91 return counter, True 92 return counter, False
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets_func_tests/spec/15.Semantic_Rules/Compatibility_Features/Extended_Conditional_Expressions/string/loop/ |
| D | string-expression-for-loop.ets | 24 let counter : int = 0; 26 counter = counter + 1; 27 if (counter > 0) { 32 if (counter == 0) {
|
| D | string-expression-loop-do-while-in.ets | 24 let counter : int = 0; 26 counter = counter + 1; 27 if (counter > 10) { 32 if (counter == 11) {
|
| D | string-expression-loop-while-in.ets | 24 let counter : int = 0; 26 counter = counter + 1; 27 if (counter > 10) { 32 if (counter == 11) {
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets_func_tests/spec/15.Semantic_Rules/Compatibility_Features/Extended_Conditional_Expressions/numeric/loop/ |
| D | numeric-loop-for-byte-nonzero-expression.ets | 24 let counter : int = 0; 26 counter = counter + 1; 27 if (counter > 10) { 32 if (counter == 11) return 0;
|
| D | numeric-loop-for-short-zero-expression.ets | 24 let counter : int = 0; 26 counter = counter + 1; 27 if (counter > 0) { 32 if (counter == 0) return 0;
|
| D | numeric-loop-for-short-nonzero-expression.ets | 24 let counter : int = 0; 26 counter = counter + 1; 27 if (counter > 10) { 32 if (counter == 11) return 0;
|
| D | numeric-loop-for-float-zero-expression.ets | 24 let counter : int = 0; 26 counter = counter + 1; 27 if (counter > 0) { 32 if (counter == 0) return 0;
|
| D | numeric-loop-for-number-zero-expression.ets | 24 let counter : int = 0; 26 counter = counter + 1; 27 if (counter > 0) { 32 if (counter == 0) return 0;
|
| D | numeric-loop-while-long.ets | 24 let counter : int = 0; 26 counter = counter + 1; 27 if (counter > 0) { 32 if (counter == 0) {
|
| D | numeric-loop-while-float.ets | 24 let counter : int = 0; 26 counter = counter + 1; 27 if (counter > 0) { 32 if (counter == 0) {
|
| D | numeric-loop-while-byte.ets | 24 let counter : int = 0; 26 counter = counter + 1; 27 if (counter > 0) { 32 if (counter == 0) {
|
| D | numeric-loop-for-float-nonzero-expression.ets | 24 let counter : int = 0; 26 counter = counter + 1; 27 if (counter > 10) { 32 if (counter == 11) return 0;
|
| D | numeric-loop-do-while-number-in.ets | 24 let counter : int = 0; 26 counter = counter + 1; 27 if (counter > 10) { 32 if (counter == 11) {
|
| D | numeric-loop-for-double-nonzero-expression.ets | 24 let counter : int = 0; 26 counter = counter + 1; 27 if (counter > 10) { 32 if (counter == 11) return 0;
|
| D | numeric-loop-do-while-int.ets | 24 let counter : int = 0; 26 counter = counter + 1; 27 if (counter > 10) { 32 if (counter == 1) {
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets_func_tests/spec/15.Semantic_Rules/Compatibility_Features/Extended_Conditional_Expressions/nullish_expr/loop/ |
| D | undefined-expression-loop-while.ets | 24 let counter : int = 0; 26 counter = counter + 1; 27 if (counter > 10) { 32 if (counter == 0) {
|
| D | null-expression-loop-while.ets | 24 let counter : int = 0; 26 counter = counter + 1; 27 if (counter > 0) { 32 if (counter == 0) {
|
| D | null-expression-loop-do-while.ets | 24 let counter : int = 0; 26 counter = counter + 1; 27 if (counter > 10) { 32 if (counter == 1) {
|