Home
last modified time | relevance | path

Searched full:counter (Results 1 – 25 of 258) sorted by relevance

1234567891011

/arkcompiler/ets_frontend/ets2panda/test/runtime/ets/namespace_tests/
Dnamespace_execution_statements_test01.ets18 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 …]
Dnamespace_basic.ets22 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/
Dworker_queue_test.cpp46 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/
Dinterface_mix_type.ts19 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/
Dtask_test.cpp36 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/
Dperf_counter.cpp231 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/
Dtest_runtime_capture.py69 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/
Dstring-expression-for-loop.ets24 let counter : int = 0;
26 counter = counter + 1;
27 if (counter > 0) {
32 if (counter == 0) {
Dstring-expression-loop-do-while-in.ets24 let counter : int = 0;
26 counter = counter + 1;
27 if (counter > 10) {
32 if (counter == 11) {
Dstring-expression-loop-while-in.ets24 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/
Dnumeric-loop-for-byte-nonzero-expression.ets24 let counter : int = 0;
26 counter = counter + 1;
27 if (counter > 10) {
32 if (counter == 11) return 0;
Dnumeric-loop-for-short-zero-expression.ets24 let counter : int = 0;
26 counter = counter + 1;
27 if (counter > 0) {
32 if (counter == 0) return 0;
Dnumeric-loop-for-short-nonzero-expression.ets24 let counter : int = 0;
26 counter = counter + 1;
27 if (counter > 10) {
32 if (counter == 11) return 0;
Dnumeric-loop-for-float-zero-expression.ets24 let counter : int = 0;
26 counter = counter + 1;
27 if (counter > 0) {
32 if (counter == 0) return 0;
Dnumeric-loop-for-number-zero-expression.ets24 let counter : int = 0;
26 counter = counter + 1;
27 if (counter > 0) {
32 if (counter == 0) return 0;
Dnumeric-loop-while-long.ets24 let counter : int = 0;
26 counter = counter + 1;
27 if (counter > 0) {
32 if (counter == 0) {
Dnumeric-loop-while-float.ets24 let counter : int = 0;
26 counter = counter + 1;
27 if (counter > 0) {
32 if (counter == 0) {
Dnumeric-loop-while-byte.ets24 let counter : int = 0;
26 counter = counter + 1;
27 if (counter > 0) {
32 if (counter == 0) {
Dnumeric-loop-for-float-nonzero-expression.ets24 let counter : int = 0;
26 counter = counter + 1;
27 if (counter > 10) {
32 if (counter == 11) return 0;
Dnumeric-loop-do-while-number-in.ets24 let counter : int = 0;
26 counter = counter + 1;
27 if (counter > 10) {
32 if (counter == 11) {
Dnumeric-loop-for-double-nonzero-expression.ets24 let counter : int = 0;
26 counter = counter + 1;
27 if (counter > 10) {
32 if (counter == 11) return 0;
Dnumeric-loop-do-while-int.ets24 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/
Dundefined-expression-loop-while.ets24 let counter : int = 0;
26 counter = counter + 1;
27 if (counter > 10) {
32 if (counter == 0) {
Dnull-expression-loop-while.ets24 let counter : int = 0;
26 counter = counter + 1;
27 if (counter > 0) {
32 if (counter == 0) {
Dnull-expression-loop-do-while.ets24 let counter : int = 0;
26 counter = counter + 1;
27 if (counter > 10) {
32 if (counter == 1) {

1234567891011