Home
last modified time | relevance | path

Searched full:has (Results 1 – 25 of 2072) sorted by relevance

12345678910>>...83

/arkcompiler/ets_frontend/arkguard/test/ut/utils/
DApiReader.spec.ts66 assert.strictEqual(enumPropertySet.has('BLOCK_PARAM1'), true);
67 assert.strictEqual(enumPropertySet.has('BLOCK_PARAM2'), true);
68 assert.strictEqual(enumPropertySet.has('ENUM_PARAM1'), true);
69 assert.strictEqual(enumPropertySet.has('ENUM_PARAM2'), true);
70 assert.strictEqual(enumPropertySet.has('NS_PARAM1'), true);
71 assert.strictEqual(enumPropertySet.has('NS_PARAM2'), true);
72 assert.strictEqual(enumPropertySet.has('EXPORT_PARAM1'), true);
73 assert.strictEqual(enumPropertySet.has('EXPORT_PARAM2'), true);
75 expect(fileWhiteList1.fileKeepInfo.enumProperties.has('BLOCK_PARAM1')).to.be.true;
76 expect(fileWhiteList1.fileKeepInfo.enumProperties.has('BLOCK_PARAM2')).to.be.true;
[all …]
DApiExtractor.spec.ts40 assert.strictEqual(ApiExtractor.mSystemExportSet.has('ExportDeclarationClass1'), true);
41 assert.strictEqual(ApiExtractor.mSystemExportSet.has('ExportDeclarationClass2'), true);
49 assert.strictEqual(ApiExtractor.mSystemExportSet.has('ExportDeclarationClass1'), false);
50 assert.strictEqual(ApiExtractor.mSystemExportSet.has('class1'), true);
51 assert.strictEqual(ApiExtractor.mSystemExportSet.has('ExportDeclarationClass2'), true);
59 assert.strictEqual(ApiExtractor.mSystemExportSet.has('default'), false);
60 assert.strictEqual(ApiExtractor.mSystemExportSet.has('name1'), true);
61 assert.strictEqual(ApiExtractor.mSystemExportSet.has('ExportDeclarationClass2'), true);
62 assert.strictEqual(ApiExtractor.mSystemExportSet.has('exportName'), true);
70 assert.strictEqual(ApiExtractor.mSystemExportSet.has('ExportDeclarationClass1'), false);
[all …]
DOhsUtil.spec.ts104 …expect(propertySet.has('Identifier') && propertySet.has('String') && propertySet.has('3 + 2')).to.…
105 expect(stringPropsSet.has('String') && propertySet.has('3 + 2')).to.be.true;
113 expect(stringPropsSet.has('value')).to.be.false;
122 expect(stringPropsSet.has('value')).to.be.true;
131 expect(stringPropsSet.has('9999999')).to.be.false;
149 expect(stringPropsSet.has('value')).to.be.false;
150 …expect(projectWhiteListManager?.fileWhiteListInfo.fileKeepInfo.stringProperties.has('value')).to.b…
162 expect(stringPropsSet.has("U")).to.be.true;
163 …expect(projectWhiteListManager?.fileWhiteListInfo.fileKeepInfo.stringProperties.has("U")).to.be.tr…
178 expect(stringPropsSet.has("U")).to.be.true;
[all …]
/arkcompiler/ets_runtime/test/aottest/builtin_inlining/set/Has/
DbuiltinSetHas.ts26 return mySet.has(x);
39 //aot: [trace] aot inline builtin: Set.has, caller function name:func_main_0@builtinSetHas
40 print(mySet.has()); //: false
45 //aot: [trace] aot inline builtin: Set.has, caller function name:func_main_0@builtinSetHas
46 print(mySet.has()); //: true
49 //aot: [trace] aot inline builtin: Set.has, caller function name:func_main_0@builtinSetHas
50 print(mySet.has(0)); //: true
51 //aot: [trace] aot inline builtin: Set.has, caller function name:func_main_0@builtinSetHas
52 print(mySet.has(3)); //: false
53 //aot: [trace] aot inline builtin: Set.has, caller function name:func_main_0@builtinSetHas
[all …]
/arkcompiler/ets_runtime/test/aottest/builtin_inlining/map/Has/
DbuiltinMapHas.ts26 return myMap.has(x);
39 //aot: [trace] aot inline builtin: Map.has, caller function name:func_main_0@builtinMapHas
40 print(myMap.has()); //: false
45 //aot: [trace] aot inline builtin: Map.has, caller function name:func_main_0@builtinMapHas
46 print(myMap.has()); //: true
49 //aot: [trace] aot inline builtin: Map.has, caller function name:func_main_0@builtinMapHas
50 print(myMap.has(0)); //: true
51 //aot: [trace] aot inline builtin: Map.has, caller function name:func_main_0@builtinMapHas
52 print(myMap.has(3)); //: false
53 //aot: [trace] aot inline builtin: Map.has, caller function name:func_main_0@builtinMapHas
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets_func_tests/escompat/
DReflectHas.ets18 // has
19 failures += test(reflectHas(), "Reflect.has");
71 result += (Reflect.has(arr, 0) == true) ? 0 : 1
72 result += (Reflect.has(arr, 3) == false) ? 0 : 1
73 result += (Reflect.has(arr, "length") == true) ? 0 : 1
74 result += (Reflect.has(arr, "qwerty") == false) ? 0 : 1
75 result += (Reflect.has(arr, "toString") == true) ? 0 : 1
76 result += (Reflect.has(arr, "toLocaleString") == true) ? 0 : 1
77 result += (Reflect.has(arr, "keys") == false) ? 0 : 1
79 result += (Reflect.has(str, 0) == true) ? 0 : 1
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets_func_tests/std/containers/
DTrivialSetTest.ets23 assertTrue( s.has(1), "has 1")
24 assertTrue( s.has(2), "has 2")
25 assertTrue( s.has(3), "has 3")
60 assertTrue( s.has(badHash0), "has 0")
61 assertTrue( s.has(badHash1), "has 1")
62 assertTrue( s.has(badHash5), "has 5")
63 assertTrue( s.has(badHash30), "has 30")
65 assertTrue( !s.has(new BadHash(29)), "!has 29")
69 assertTrue( !s.has(new BadHash(0)), "!has 0")
78 assertTrue( !s.has(b))
[all …]
/arkcompiler/ets_frontend/ets2panda/linter/test/main/
Dsendable_class_interface_property.ets.json563 …"suggest": "Property 'prop1' has no initializer and is not definitely assigned in the constructor.…
564 … "rule": "Property 'prop1' has no initializer and is not definitely assigned in the constructor.",
573 …"suggest": "Property 'prop2' has no initializer and is not definitely assigned in the constructor.…
574 … "rule": "Property 'prop2' has no initializer and is not definitely assigned in the constructor.",
583 …"suggest": "Property 'prop3' has no initializer and is not definitely assigned in the constructor.…
584 … "rule": "Property 'prop3' has no initializer and is not definitely assigned in the constructor.",
593 …"suggest": "Property 'prop4' has no initializer and is not definitely assigned in the constructor.…
594 … "rule": "Property 'prop4' has no initializer and is not definitely assigned in the constructor.",
603 …"suggest": "Property 'prop5' has no initializer and is not definitely assigned in the constructor.…
604 … "rule": "Property 'prop5' has no initializer and is not definitely assigned in the constructor.",
[all …]
Dlimit_void_type.ets.arkts2.json24 "rule": "Type \"void\" has no instances.(arkts-limited-void-type)",
34 "rule": "Type \"void\" has no instances.(arkts-limited-void-type)",
44 "rule": "Type \"void\" has no instances.(arkts-limited-void-type)",
54 "rule": "Type \"void\" has no instances.(arkts-limited-void-type)",
64 "rule": "Type \"void\" has no instances.(arkts-limited-void-type)",
74 "rule": "Type \"void\" has no instances.(arkts-limited-void-type)",
84 "rule": "Type \"void\" has no instances.(arkts-limited-void-type)",
94 "rule": "Type \"void\" has no instances.(arkts-limited-void-type)",
114 "rule": "Type \"void\" has no instances.(arkts-limited-void-type)",
124 "rule": "Type \"void\" has no instances.(arkts-limited-void-type)",
[all …]
Dclass_static_init.ets.arkts2.json24 "rule": "The static property has no initializer (arkts-class-static-initialization)",
34 "rule": "The static property has no initializer (arkts-class-static-initialization)",
44 "rule": "The static property has no initializer (arkts-class-static-initialization)",
54 "rule": "The static property has no initializer (arkts-class-static-initialization)",
64 "rule": "The static property has no initializer (arkts-class-static-initialization)",
74 "rule": "The static property has no initializer (arkts-class-static-initialization)",
84 "rule": "The static property has no initializer (arkts-class-static-initialization)",
104 "rule": "The static property has no initializer (arkts-class-static-initialization)",
114 "rule": "The static property has no initializer (arkts-class-static-initialization)",
124 "rule": "The static property has no initializer (arkts-class-static-initialization)",
[all …]
Dnot_support_decorator.ets.json83 …"suggest": "Property 'data' has no initializer and is not definitely assigned in the constructor.",
84 … "rule": "Property 'data' has no initializer and is not definitely assigned in the constructor.",
93 … "suggest": "Property 'id' has no initializer and is not definitely assigned in the constructor.",
94 … "rule": "Property 'id' has no initializer and is not definitely assigned in the constructor.",
103 …"suggest": "Property 'sharedValue' has no initializer and is not definitely assigned in the constr…
104 …"rule": "Property 'sharedValue' has no initializer and is not definitely assigned in the construct…
113 …"suggest": "Property 'value' has no initializer and is not definitely assigned in the constructor.…
114 … "rule": "Property 'value' has no initializer and is not definitely assigned in the constructor.",
123 …"suggest": "Property 'colorScheme' has no initializer and is not definitely assigned in the constr…
124 …"rule": "Property 'colorScheme' has no initializer and is not definitely assigned in the construct…
[all …]
Darkui_decorators.ets.json173 …"suggest": "Property 'name' has no initializer and is not definitely assigned in the constructor.",
174 … "rule": "Property 'name' has no initializer and is not definitely assigned in the constructor.",
183 … "suggest": "Property 'age' has no initializer and is not definitely assigned in the constructor.",
184 … "rule": "Property 'age' has no initializer and is not definitely assigned in the constructor.",
193 …"suggest": "Property 'localStorage' has no initializer and is not definitely assigned in the const…
194 …"rule": "Property 'localStorage' has no initializer and is not definitely assigned in the construc…
203 …"suggest": "Property 'provide' has no initializer and is not definitely assigned in the constructo…
204 …"rule": "Property 'provide' has no initializer and is not definitely assigned in the constructor.",
213 …"suggest": "Property 'state' has no initializer and is not definitely assigned in the constructor.…
214 … "rule": "Property 'state' has no initializer and is not definitely assigned in the constructor.",
[all …]
Dobject_literals_2.ets.migrate.json113 … "suggest": "Property 'b' has no initializer and is not definitely assigned in the constructor.",
114 … "rule": "Property 'b' has no initializer and is not definitely assigned in the constructor.",
123 … "suggest": "Property 'x' has no initializer and is not definitely assigned in the constructor.",
124 … "rule": "Property 'x' has no initializer and is not definitely assigned in the constructor.",
133 … "suggest": "Property 'y' has no initializer and is not definitely assigned in the constructor.",
134 … "rule": "Property 'y' has no initializer and is not definitely assigned in the constructor.",
143 … "suggest": "Property 'x' has no initializer and is not definitely assigned in the constructor.",
144 … "rule": "Property 'x' has no initializer and is not definitely assigned in the constructor.",
153 … "suggest": "Property 'y' has no initializer and is not definitely assigned in the constructor.",
154 … "rule": "Property 'y' has no initializer and is not definitely assigned in the constructor.",
[all …]
Dlimit_void_type.ets.autofix.json35 "rule": "Type \"void\" has no instances.(arkts-limited-void-type)",
45 "rule": "Type \"void\" has no instances.(arkts-limited-void-type)",
66 "rule": "Type \"void\" has no instances.(arkts-limited-void-type)",
76 "rule": "Type \"void\" has no instances.(arkts-limited-void-type)",
97 "rule": "Type \"void\" has no instances.(arkts-limited-void-type)",
107 "rule": "Type \"void\" has no instances.(arkts-limited-void-type)",
128 "rule": "Type \"void\" has no instances.(arkts-limited-void-type)",
138 "rule": "Type \"void\" has no instances.(arkts-limited-void-type)",
180 "rule": "Type \"void\" has no instances.(arkts-limited-void-type)",
201 "rule": "Type \"void\" has no instances.(arkts-limited-void-type)",
[all …]
Dobject_literals_2.ets.json123 … "suggest": "Property 'b' has no initializer and is not definitely assigned in the constructor.",
124 … "rule": "Property 'b' has no initializer and is not definitely assigned in the constructor.",
133 … "suggest": "Property 'x' has no initializer and is not definitely assigned in the constructor.",
134 … "rule": "Property 'x' has no initializer and is not definitely assigned in the constructor.",
143 … "suggest": "Property 'y' has no initializer and is not definitely assigned in the constructor.",
144 … "rule": "Property 'y' has no initializer and is not definitely assigned in the constructor.",
153 … "suggest": "Property 'x' has no initializer and is not definitely assigned in the constructor.",
154 … "rule": "Property 'x' has no initializer and is not definitely assigned in the constructor.",
163 … "suggest": "Property 'y' has no initializer and is not definitely assigned in the constructor.",
164 … "rule": "Property 'y' has no initializer and is not definitely assigned in the constructor.",
[all …]
/arkcompiler/ets_runtime/test/aottest/builtin_inlining/set/Add/
DbuiltinSetAdd.ts51 print(mySet.has(undefined));
52 //aot: [trace] aot inline builtin: Set.has, caller function name:func_main_0@builtinSetAdd
60 print(mySet.has(125));
61 //aot: [trace] aot inline builtin: Set.has, caller function name:func_main_0@builtinSetAdd
69 print(mySet.has(0));
70 //aot: [trace] aot inline builtin: Set.has, caller function name:func_main_0@builtinSetAdd
78 print(mySet.has(0));
79 //aot: [trace] aot inline builtin: Set.has, caller function name:func_main_0@builtinSetAdd
86 print(mySet.has("abc"));
87 //aot: [trace] aot inline builtin: Set.has, caller function name:func_main_0@builtinSetAdd
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets_sdk/api/@ohos/util/TreeSet/
DTreeSetAddHasTest.ets22 const suite = new ArkTestsuite("TreeSet Add Has API tests")
27 suite.addTest("TreeSet has value", testHasValue)
28 suite.addTest("TreeSet has not set value", testHasNonExistingValue)
29 suite.addTest("TreeSet has value of the null TreeSet", testHasValueInEmptyTreeSet)
30 …suite.addTest("TreeSet has empty string value when treeSet is empty", testHasEmptyStringValueInEmp…
31 suite.addTest("TreeSet has value after mix interface", testHasValueAfterMixedOperations)
48 let result = treeSet.has("aa");
60 let result = treeSet.has(obj);
69 let result = treeSet.has("");
78 let result = treeSet.has("aa");
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets_sdk/api/@ohos/util/ArrayList/
DArrayListLengthTest.ets32 suite.addTest("Testing ArrayList check has data", testArrayListHas0001);
102 assertFalse(arrayList.has("start"), "The ArrayList should not contain 'start' after removal");
103 assertFalse(arrayList.has("end"), "The ArrayList should not contain 'end' after removal");
117 assertFalse(arrayList.has("`"), "The ArrayList should not contain '`' after removal");
118 assertFalse(arrayList.has("%"), "The ArrayList should not contain '%' after removal");
119 assertFalse(arrayList.has(`"`), "The ArrayList should not contain '\"' after removal");
140 assertTrue(arrayList.has("zhang san"), "The ArrayList should contain 'zhang san'");
141 assertTrue(arrayList.has(1), "The ArrayList should contain the number 1");
142 assertTrue(arrayList.has(temp), "The ArrayList should contain the Temp object");
143 assertTrue(arrayList.has(undefined), "The ArrayList should contain undefined");
[all …]
DArrayListInsertHasGetIndexOfTests.ets29 suite.addTest("ArrayList has", testHasElement);
30 suite.addTest("ArrayList has with inexistent element", testHasNonExistentElement);
31 suite.addTest("ArrayList has with every type", testHasVariousTypes);
128 let result: boolean = arrayList.has(TestData.testNumber3);
135 let result: boolean = arrayList.has(TestData.testNumber6);
153 assertTrue(arrayList.has(TestData.testString1), "Elements should be added");
154 assertTrue(arrayList.has(TestData.testNumber1), "Elements should be added");
155 assertTrue(arrayList.has(TestData.testObject1), "Elements should be added");
156 assertTrue(arrayList.has(undefined), "Elements should be added");
157 assertTrue(arrayList.has(null), "Elements should be added");
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets_sdk/api/@ohos/util/HashSet/
DHashSetHasTest.ets22 const suite = new ArkTestsuite("HashSet Has API tests")
24 suite.addTest("HashSet has value of the hashSet", testHasValue)
25 suite.addTest("HashSet has not set value of the hashSet", testHasNotSetValue)
26 suite.addTest("HashSet has value of the null hashSet", testHasValueOfEmptyHashSet)
27 suite.addTest("HashSet has null value of the hashSet", testHasNullValue)
28 suite.addTest("HashSet has not set null value of the hashSet", testHasNotSetNullValue)
29 suite.addTest("HashSet has value after clear data", testHasValueAfterClear)
30 suite.addTest("HashSet has empty string", testHasEmptyString)
38 let result = hashSet.has("squirrel");
46 let result = hashSet.has("test");
[all …]
/arkcompiler/ets_frontend/arkguard/src/utils/
DTransformUtil.ts128 return reservedSet.has(originalName) || isMatchWildcard(universalArray, originalName);
163 return LocalVariableCollections.reservedLangForLocal.has(mangledName) ||
164 LocalVariableCollections.reservedConfig?.has(mangledName) ||
165 UnobfuscationCollections.reservedSdkApiForLocal?.has(mangledName) ||
166 UnobfuscationCollections.reservedExportName?.has(mangledName);
174 // The 'mReservedToplevelNames' has already been added to 'PropCollections.reservedProperties'.
175 return UnobfuscationCollections.reservedLangForTopLevel.has(originalName) ||
176 UnobfuscationCollections.reservedSdkApiForGlobal?.has(originalName) ||
177 UnobfuscationCollections.reservedExportName?.has(originalName) ||
178 PropCollections.reservedProperties?.has(originalName) ||
[all …]
/arkcompiler/ets_frontend/ets2panda/linter/test/sdkwhite/
Dlimit_void_type_sdk3.ets.arkts2.json24 "rule": "Type \"void\" has no instances.(sdk-limited-void-type)",
34 "rule": "Type \"void\" has no instances.(arkts-limited-void-type)",
44 "rule": "Type \"void\" has no instances.(sdk-limited-void-type)",
64 "rule": "Type \"void\" has no instances.(arkts-limited-void-type)",
84 "rule": "Type \"void\" has no instances.(arkts-limited-void-type)",
94 "rule": "Type \"void\" has no instances.(arkts-limited-void-type)",
104 "rule": "Type \"void\" has no instances.(arkts-limited-void-type)",
114 "rule": "Type \"void\" has no instances.(arkts-limited-void-type)",
124 "rule": "Type \"void\" has no instances.(arkts-limited-void-type)",
134 "rule": "Type \"void\" has no instances.(sdk-limited-void-type)",
[all …]
/arkcompiler/ets_frontend/ets2panda/test/ast/parser/ets/readonly-parameter-test/
Dreadonly-parameter-and-Readonly-test2.ets38 /* @@@ label6 Error TypeError: Cannot modify an array or tuple content that has the readonly parame…
39 /* @@@ label7 Error TypeError: Cannot modify an array or tuple content that has the readonly parame…
40 /* @@@ label8 Error TypeError: Cannot modify an array or tuple content that has the readonly parame…
41 /* @@@ label9 Error TypeError: Cannot modify an array or tuple content that has the readonly parame…
42 /* @@@ label Error TypeError: Cannot modify an array or tuple content that has the readonly paramet…
43 /* @@@ label1 Error TypeError: Cannot modify an array or tuple content that has the readonly parame…
44 /* @@@ label2 Error TypeError: Cannot modify an array or tuple content that has the readonly parame…
45 /* @@@ label3 Error TypeError: Cannot modify an array or tuple content that has the readonly parame…
46 /* @@@ label4 Error TypeError: Cannot modify an array or tuple content that has the readonly parame…
47 /* @@@ label5 Error TypeError: Cannot modify an array or tuple content that has the readonly parame…
/arkcompiler/ets_frontend/ets2panda/test/ast/compiler/ets/annotation_tests/
Dannotation_for_union_type.ets31 /* @@? 20:26 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno' has alre…
32 /* @@? 20:48 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno' has alre…
33 /* @@? 23:26 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno' has alre…
34 /* @@? 23:47 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno' has alre…
35 /* @@? 26:26 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno' has alre…
36 /* @@? 26:41 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno' has alre…
37 /* @@? 29:26 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno' has alre…
38 /* @@? 29:41 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno' has alre…
39 /* @@? 29:59 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno' has alre…
Dannotation_for_boxing_type.ets29 /* @@? 20:23 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno' has alre…
30 /* @@? 21:25 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno' has alre…
31 /* @@? 22:25 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno' has alre…
32 /* @@? 23:24 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno' has alre…
33 /* @@? 24:26 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno' has alre…
34 /* @@? 25:26 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno' has alre…
35 /* @@? 26:24 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno' has alre…
36 /* @@? 27:24 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno' has alre…

12345678910>>...83