Home
last modified time | relevance | path

Searched full:contains (Results 1 – 25 of 586) sorted by relevance

12345678910>>...24

/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets_func_tests/escompat/
DReflectGetBadCases.ets59 … result += e.toString().contains("`target` argument of Reflect.get must have fields", 0) ? 0 : 1
65 … result += e.toString().contains("`target` argument of Reflect.get must have fields", 0) ? 0 : 1
71 … result += e.toString().contains("`target` argument of Reflect.get must have fields", 0) ? 0 : 1
77 … result += e.toString().contains("`target` argument of Reflect.get must have fields", 0) ? 0 : 1
83 … result += e.toString().contains("`target` argument of Reflect.get must have fields", 0) ? 0 : 1
89 … result += e.toString().contains("`target` argument of Reflect.get must have fields", 0) ? 0 : 1
95 … result += e.toString().contains("`target` argument of Reflect.get must have fields", 0) ? 0 : 1
101 … result += e.toString().contains("`target` argument of Reflect.get must have fields", 0) ? 0 : 1
107 … result += e.toString().contains("`target` argument of Reflect.get must have fields", 0) ? 0 : 1
115 … result += e.toString().contains("`target` argument of Reflect.get must be indexed", 0) ? 0 : 1
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets_sdk/api/@ohos/util/HashMap/
DHashMapHasKeyHasValueTest.ets36 assertEQ(result1, true, "The hashMap contains the specified key");
37 assertEQ(result2, true, "The hashMap contains the specified value");
46 assertEQ(result1, false, "The hashMap not contains the specified key that is not set");
47 assertEQ(result2, false, "The hashMap not contains the specified value that is not set");
55 … assertEQ(result1, false, "The hashMap not contains the specified key when the hashMap is empty");
56 …assertEQ(result2, false, "The hashMap not contains the specified value when the hashMap is empty");
65 assertEQ(result1, true, "The hashMap contains the empty string key");
66 assertEQ(result2, true, "The hashMap contains the empty string value");
75 assertEQ(result1, false, "The hashMap not contains the specified key that is not set");
76 assertEQ(result2, false, "The hashMap not contains the specified value that is not set");
[all …]
/arkcompiler/ets_frontend/es2panda/test/bytecode_file_size_comparison/test_cases/java_test_framework/java_cases/
DHashSetTest.java29 // Test if the set contains a certain element in main()
30 if (set.contains("Banana")) { in main()
31 System.out.println("The set contains the element 'Banana'."); in main()
36 if (!set.contains("Banana")) { in main()
DStringTest.java30 // Test if the string contains a substring in main()
31 if (text.contains("World")) { in main()
32 System.out.println("The string contains \"World\"."); in main()
/arkcompiler/runtime_core/static_core/plugins/ets/tests/stdlib-templates/
Dreadme.md20 - The template itself. It contains a mix of Jinja2 statements and ArkTS code. The content will be r…
29 The specific level template contains the loop over all objects in the configuration file. Then the …
47 …template (see example below) and `test_verifier_lib.j2` - the file that contains function for veri…
85 This example contains two YAML objects fragments, each of them will be used for creating a separate…
110 - object_type - type of object that contains the tested method
112 - init_object_data_type - type of container that contains test data, usually this is an array
116 - param_list - dictionary that contains test data for each parameter
117 - param_types - dictionary that contains type for each parameter
118 - param_init_data_types - dictionary that contains data type that used for parameters initialization
121 …- name of a function that used for test result verification. Usually it contains two parameters, a…
/arkcompiler/ets_runtime/ecmascript/compiler/baseline/
Dbaseline_assembler.h55 …return ((3 + numVregs) * FRAME_SLOT_SIZE); // +3: contains numVregs, undefined, callTarget, newTa… in GetSpecialRegisterOffset()
57 … return -(5 * FRAME_SLOT_SIZE); // -5: contains frametype, rbp, pc, sp, callsize(jumpSizeAfterCall) in GetSpecialRegisterOffset()
59 … return -(6 * FRAME_SLOT_SIZE); // -6: contains frametype, rbp, pc, sp, callsize, env, in GetSpecialRegisterOffset()
61 … return -(7 * FRAME_SLOT_SIZE); // -7: contains frametype, rbp, pc, sp, callsize, env, acc, in GetSpecialRegisterOffset()
63 … return -(8 * FRAME_SLOT_SIZE); // -8: contains frametype, rbp, pc, sp, callsize, env, acc, thisObj in GetSpecialRegisterOffset()
65 // -9: contains frametype, rbp, pc, sp, callsize, env, acc, thisObj, call-target in GetSpecialRegisterOffset()
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets_sdk/api/@ohos/util/
DScopeHelper.ets179 assertEQ(sh.contains(new NumberType(10)), true)
180 assertEQ(sh.contains(new NumberType(23)), true)
181 assertEQ(sh.contains(new NumberType(30)), true)
182 assertEQ(sh.contains(new NumberType(40)), false)
183 assertEQ(sh.contains(new NumberType(0)), false)
189 assertEQ(sh.contains(createScopeHelper(10, 30)), true)
190 assertEQ(sh.contains(createScopeHelper(10, 20)), true)
191 assertEQ(sh.contains(createScopeHelper(15, 18)), true)
192 assertEQ(sh.contains(createScopeHelper(10, 40)), false)
193 assertEQ(sh.contains(createScopeHelper(1, 30)), false)
DLRUCacheIteratorTest.ets33 suite.addTest("LRUCache Keys Get&Contains", testLRUCacheKeysGetAndContains);
37 suite.addTest("LRUCache Values Get&Contains", testLRUCacheValuesGetAndContains);
71 that.contains(1);
87 that.contains(3)
89 that.contains('abc')
123 that.contains(1);
139 that.contains(3)
141 that.contains('abc')
156 that.contains(3);
158 that.contains('abc');
DLRUCacheTest.ets42 suite.addTest("LRUCache Contains True", testLRUCacheContainsTrue);
43 suite.addTest("LRUCache Contains False", testLRUCacheContainsFalse);
44 suite.addTest("LRUCache Contains Mixed", testLRUCacheContainsMixed);
174 let result1 = that.contains(1);
181 let result1 = that.contains(1);
189 let result1 = that.contains(1)
190 let result2 = that.contains('string')
191 let result3 = that.contains(0)
286 that.contains(5);
/arkcompiler/runtime_core/static_core/verification/util/
Daddr_map.h164 return addrRange_.Contains(addr); in IsInAddressSpace()
169 if (!addrRange_.Contains(addrFrom) || !addrRange_.Contains(addrTo)) { in Mark()
179 if (!addrRange_.Contains(addrFrom) || !addrRange_.Contains(addrTo)) { in Clear()
189 if (!addrRange_.Contains(addrFrom) || !addrRange_.Contains(addrTo)) { in HasMarks()
/arkcompiler/runtime_core/static_core/runtime/tests/
Dstack_like_allocator_test.cpp189 ASSERT_FALSE(alloc.Contains(invalidAddr)); // NOLINT(clang-analyzer-unix.Malloc) in TEST_F()
192 ASSERT_TRUE(alloc.Contains(addr1Inside)); in TEST_F()
193 ASSERT_FALSE(alloc.Contains(invalidAddr)); // NOLINT(clang-analyzer-unix.Malloc) in TEST_F()
196 ASSERT_FALSE(alloc.Contains(addr1Inside)); in TEST_F()
197 ASSERT_FALSE(alloc.Contains(invalidAddr)); in TEST_F()
202 ASSERT_TRUE(alloc.Contains(addr1Inside)); in TEST_F()
203 ASSERT_TRUE(alloc.Contains(addr2Inside)); in TEST_F()
204 ASSERT_FALSE(alloc.Contains(invalidAddr)); in TEST_F()
Dframe_allocator_test.cpp191 ASSERT_FALSE(alloc.Contains(invalidAddr)); in CheckAddrInsideAllocator()
196 ASSERT_TRUE(alloc.Contains(addr1Inside)); in CheckAddrInsideAllocator()
197 ASSERT_FALSE(alloc.Contains(invalidAddr)); in CheckAddrInsideAllocator()
200 ASSERT_FALSE(alloc.Contains(addr1Inside)); in CheckAddrInsideAllocator()
201 ASSERT_FALSE(alloc.Contains(invalidAddr)); in CheckAddrInsideAllocator()
208 ASSERT_TRUE(alloc.Contains(addr1Inside)); in CheckAddrInsideAllocator()
209 ASSERT_TRUE(alloc.Contains(addr2Inside)); in CheckAddrInsideAllocator()
210 ASSERT_FALSE(alloc.Contains(invalidAddr)); in CheckAddrInsideAllocator()
/arkcompiler/runtime_core/static_core/compiler/optimizer/optimizations/
Dcondition_chain_cache.cpp28 static bool Contains(const ConditionChain *chain0, const ConditionChain *chain1) in Contains() function
53 return Contains(chain0, chain1) && Contains(chain1, chain0); in Equal()
/arkcompiler/ets_frontend/es2panda/test/bytecode_file_size_comparison/test_cases/ts/
DStringTest.ts23 // Test if the string contains a substring
25 console.log('The string contains "World".');
DHashSetTest.ts21 // Test if the set contains a certain element
23 console.log('The set contains the element \'Banana\'.');
/arkcompiler/ets_frontend/es2panda/test/bytecode_file_size_comparison/test_cases/js/
DStringTest.js23 // Test if the string contains a substring
25 console.log('The string contains "World".');
DHashSetTest.js21 // Test if the set contains a certain element
23 console.log('The set contains the element \'Banana\'.');
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/17.experimental_features/09.native_functions_and_methods/02.native_methods/
Dnative_method_declaration_with_keywords.ets20 …: It is compile-time error if a method declaration that contains the keyword native also contains
/arkcompiler/ets_frontend/test262/
DREADME.md3 es5_tests.txt: This file contains a list of ES5 test cases. If useful cases are found missing, you…
4 es2015_tests.txt: This file contains a full list of use cases of ES2015 except those filtered out …
5 es2021_tests.txt: This file contains a full list of use cases of ES2021 except those filtered out …
6 intl_tests.txt: This file contains a list of internationalization test cases. If you find useful c…
7 skip_tests.json: This file contains a list of use cases that do not meet the requirements. If usefu…
8 intl_skip_tests.json: This file contains a list of non-compliant internationalization use cases. If…
39 Run test262 - ES2015. all: Contains all use cases for
80 #### 2.4.2 Contains all use cases for ES5 and ES2015
Des2022_tests.txt217 language/expressions/class/elements/literal-name-init-err-contains-arguments.js
229 language/expressions/class/elements/equality-init-err-contains-super.js
230 language/expressions/class/elements/static-literal-init-err-contains-arguments.js
233 language/expressions/class/elements/static-comp-name-init-err-contains-super.js
238 language/expressions/class/elements/comp-name-init-err-contains-super.js
239 language/expressions/class/elements/arrow-fnc-init-err-contains-super.js
247 language/expressions/class/elements/ternary-init-err-contains-super.js
255 language/expressions/class/elements/nested-comp-name-init-err-contains-arguments.js
256 language/expressions/class/elements/nested-static-comp-name-init-err-contains-super.js
266 language/expressions/class/elements/nested-literal-name-init-err-contains-super.js
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/09.classes/06.method_declarations/01.static_methods/
Dstatic_method_declaration_with_keywords.ets20 …: It is compile-time error if a method declaration that contains the keyword static also contains
/arkcompiler/runtime_core/static_core/docs/
Dbytecode_profiling.md5 Each bytecode instruction, that supports profiling, contains additional field - profile index. It d…
13 For each method, that contains instructions with profiling data, Runtime should allocate profiling …
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/09.classes/06.method_declarations/06.overriding_methods/
Doverride_method_declaration_with_keywords.ets20 … It is compile-time error if a method declaration that contains the keyword override also contains
/arkcompiler/runtime_core/tests/checked/
Dchecker.rb69 def contains?(str, match)
94 @current_index = @lines.index { |line| contains?(line, match) }
102 index = @lines.drop(@current_index).index { |line| contains?(line, match) }
111 raise_error "#{@name} should not occur: #{match_str(match)}" if contains?(line, match)
119 raise_error "#{@name} should not occur: #{match_str(match)}" if contains?(line, match)
275 @events_scope.lines.count { |event| contains?(event, match) }
293 res = @events_scope.lines.count { |event| contains?(event, match) }
314 @ir_scope.lines.count { |inst| contains?(inst, match) }
366 …if line.start_with?('METHOD_INFO:') && contains?(@disasm_lines[index + 1].split(':', 2)[1].strip, …
396 if contains?(line, match)
/arkcompiler/runtime_core/static_core/tests/tests-u-runner-2/runner/extensions/validators/
Divalidator.py24 # output: str - what stdout contains
25 # error: str - what stderr contains

12345678910>>...24