Home
last modified time | relevance | path

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

12345678910>>...63

/arkcompiler/ets_frontend/arkguard/test/ut/utils/
DApiReader.spec.ts61 assert.strictEqual(enumPropertySet.has('BLOCK_PARAM1'), true);
62 assert.strictEqual(enumPropertySet.has('BLOCK_PARAM2'), true);
63 assert.strictEqual(enumPropertySet.has('ENUM_PARAM1'), true);
64 assert.strictEqual(enumPropertySet.has('ENUM_PARAM2'), true);
65 assert.strictEqual(enumPropertySet.has('NS_PARAM1'), true);
66 assert.strictEqual(enumPropertySet.has('NS_PARAM2'), true);
67 assert.strictEqual(enumPropertySet.has('EXPORT_PARAM1'), true);
68 assert.strictEqual(enumPropertySet.has('EXPORT_PARAM2'), true);
70 expect(fileWhiteList1.fileKeepInfo.enumProperties.has('BLOCK_PARAM1')).to.be.true;
71 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 …]
DProjectCollections.spec.ts48 expect(targetSet.has(1)).to.be.true;
49 expect(targetSet.has(2)).to.be.true;
50 expect(targetSet.has(3)).to.be.true;
51 expect(targetSet.has(4)).to.be.true;
59 expect(set.has(1)).to.be.true;
60 expect(set.has(2)).to.be.true;
61 expect(set.has(3)).to.be.true;
127 expect(fileWhilteList?.fileKeepInfo.structProperties.has('test1')).to.be.true;
128 expect(fileWhilteList?.fileKeepInfo.enumProperties.has('test2')).to.be.true;
133 expect(fileWhilteList?.fileKeepInfo.structProperties.has('test1')).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.sts18 // 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 …]
DWeakMapTest.sts41 assertTrue(weakMap.has(k), "WeakMap.has() returned false")
48 assertFalse(weakMap.has(k), "after detete WeakMap.has() returned true")
58 assertTrue(weakMap.has(key10))
59 assertTrue(weakMap.has(key20))
72 assertTrue(weakMap.has(key1))
73 assertTrue(weakMap.has(key2))
82 assertTrue(nullEntriesMap.has(key1))
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets_func_tests/std/containers/
DTrivialSetTest.sts23 assert s.has(1) : "has 1"
24 assert s.has(2) : "has 2"
25 assert s.has(3) : "has 3"
60 assert s.has(badHash0) : "has 0"
61 assert s.has(badHash1) : "has 1"
62 assert s.has(badHash5) : "has 5"
63 assert s.has(badHash30) : "has 30"
65 assert !s.has(new BadHash(29)) : "!has 29"
69 assert !s.has(new BadHash(0)) : "!has 0"
78 assert !s.has(b)
[all …]
DTrivialMapTest.sts23 assert s.has(1) : "has 1"
24 assert s.has(2) : "has 2"
25 assert s.has(3) : "has 3"
/arkcompiler/ets_frontend/ets2panda/linter/test/main/
Dsendable_class_interface_property.ts.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 …]
Darkui_decorators.ts.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_prop_func_type.ts.json33 … "suggest": "Property 'a' has no initializer and is not definitely assigned in the constructor.",
34 … "rule": "Property 'a' has no initializer and is not definitely assigned in the constructor.",
43 … "suggest": "Property 'b' has no initializer and is not definitely assigned in the constructor.",
44 … "rule": "Property 'b' has no initializer and is not definitely assigned in the constructor.",
53 … "suggest": "Property 'c' has no initializer and is not definitely assigned in the constructor.",
54 … "rule": "Property 'c' has no initializer and is not definitely assigned in the constructor.",
63 … "suggest": "Property 'd' has no initializer and is not definitely assigned in the constructor.",
64 … "rule": "Property 'd' has no initializer and is not definitely assigned in the constructor.",
Dobject_literals_prop_func_type.ts.autofix.json33 … "suggest": "Property 'a' has no initializer and is not definitely assigned in the constructor.",
34 … "rule": "Property 'a' has no initializer and is not definitely assigned in the constructor.",
43 … "suggest": "Property 'b' has no initializer and is not definitely assigned in the constructor.",
44 … "rule": "Property 'b' has no initializer and is not definitely assigned in the constructor.",
53 … "suggest": "Property 'c' has no initializer and is not definitely assigned in the constructor.",
54 … "rule": "Property 'c' has no initializer and is not definitely assigned in the constructor.",
63 … "suggest": "Property 'd' has no initializer and is not definitely assigned in the constructor.",
64 … "rule": "Property 'd' has no initializer and is not definitely assigned in the constructor.",
Dobject_literals_2.ts.autofix.json135 … "suggest": "Property 'b' has no initializer and is not definitely assigned in the constructor.",
136 … "rule": "Property 'b' has no initializer and is not definitely assigned in the constructor.",
145 … "suggest": "Property 'x' has no initializer and is not definitely assigned in the constructor.",
146 … "rule": "Property 'x' has no initializer and is not definitely assigned in the constructor.",
155 … "suggest": "Property 'y' has no initializer and is not definitely assigned in the constructor.",
156 … "rule": "Property 'y' has no initializer and is not definitely assigned in the constructor.",
165 … "suggest": "Property 'x' has no initializer and is not definitely assigned in the constructor.",
166 … "rule": "Property 'x' has no initializer and is not definitely assigned in the constructor.",
175 … "suggest": "Property 'y' has no initializer and is not definitely assigned in the constructor.",
176 … "rule": "Property 'y' has no initializer and is not definitely assigned in the constructor.",
[all …]
Dobject_literals_2.ts.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 …]
Dstructural_identity_constructor.ts.json33 … "suggest": "Property 'f' has no initializer and is not definitely assigned in the constructor.",
34 … "rule": "Property 'f' has no initializer and is not definitely assigned in the constructor.",
43 … "suggest": "Property 'f' has no initializer and is not definitely assigned in the constructor.",
44 … "rule": "Property 'f' has no initializer and is not definitely assigned in the constructor.",
53 … "suggest": "Property 'foo' has no initializer and is not definitely assigned in the constructor.",
54 … "rule": "Property 'foo' has no initializer and is not definitely assigned in the constructor.",
Dnon_initializable_prop_decorators.ts.json93 … "suggest": "Property 'pr' has no initializer and is not definitely assigned in the constructor.",
94 … "rule": "Property 'pr' has no initializer and is not definitely assigned in the constructor.",
103 … "suggest": "Property 'pr2' has no initializer and is not definitely assigned in the constructor.",
104 … "rule": "Property 'pr2' has no initializer and is not definitely assigned in the constructor.",
113 … "suggest": "Property 'f2' has no initializer and is not definitely assigned in the constructor.",
114 … "rule": "Property 'f2' has no initializer and is not definitely assigned in the constructor.",
123 …"suggest": "Property 'controller' has no initializer and is not definitely assigned in the constru…
124 …"rule": "Property 'controller' has no initializer and is not definitely assigned in the constructo…
/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 …]
DbuiltinSetAdd copy.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
94 print(mySet.has(15));
95 //aot: [trace] aot inline builtin: Set.has, caller function name:func_main_0@builtinSetAdd
[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/test/ast/parser/ets/readonly-parameter-test/
Dreadonly-parameter-and-Readonly-test2.sts38 /* @@? 30:1 Error TypeError: Cannot modify an array or tuple content that has the readonly paramete…
39 /* @@? 31:1 Error TypeError: Cannot modify an array or tuple content that has the readonly paramete…
40 /* @@? 34:1 Error TypeError: Cannot modify an array or tuple content that has the readonly paramete…
41 /* @@? 36:1 Error TypeError: Cannot modify an array or tuple content that has the readonly paramete…
42 /* @@? 17:5 Error TypeError: Cannot modify an array or tuple content that has the readonly paramete…
43 /* @@? 18:5 Error TypeError: Cannot modify an array or tuple content that has the readonly paramete…
44 /* @@? 19:5 Error TypeError: Cannot modify an array or tuple content that has the readonly paramete…
45 /* @@? 23:5 Error TypeError: Cannot modify an array or tuple content that has the readonly paramete…
46 /* @@? 24:5 Error TypeError: Cannot modify an array or tuple content that has the readonly paramete…
47 /* @@? 25:5 Error TypeError: Cannot modify an array or tuple content that has the readonly paramete…
/arkcompiler/ets_runtime/test/moduletest/container/
Dcontainer_treeset.js37 // test has: true
38 map.set("test has:", set.length == 2 && set.has("aa") && set.has("bb") && !set.has("cc"));
75 setFlag= set.has(key) && set.has(value);
87 set.popLast() == "ee" && !set.has("aa"));
89 map.set("test remove:", set.remove("bb") && set.length == 2 && !set.has("bb"));
92 map.set("test clear:", set.length == 0 && !set.has("cc") && set.isEmpty());
105 map.set("test has undefined", cmmp.has(undefined) == false);
106 map.set("test has null", cmmp.has(null) == false);
109 map.set("test has undefined false", cmmp.has(undefined) == true);
110 map.set("test has null false", cmmp.has(null) == true);
[all …]
/arkcompiler/ets_frontend/ets2panda/linter/test/regression/
D14953.ts.json53 …"suggest": "Property '['b']' has no initializer and is not definitely assigned in the constructor.…
54 … "rule": "Property '['b']' has no initializer and is not definitely assigned in the constructor.",
63 …"suggest": "Property '[T.A]' has no initializer and is not definitely assigned in the constructor.…
64 … "rule": "Property '[T.A]' has no initializer and is not definitely assigned in the constructor.",
73 …"suggest": "Property '[T.B]' has no initializer and is not definitely assigned in the constructor.…
74 … "rule": "Property '[T.B]' has no initializer and is not definitely assigned in the constructor.",
83 …"suggest": "Property '[str1]' has no initializer and is not definitely assigned in the constructor…
84 … "rule": "Property '[str1]' has no initializer and is not definitely assigned in the constructor.",
/arkcompiler/ets_runtime/ecmascript/tests/
Djs_api_tree_set_test.cpp89 // test has in HWTEST_F_L0()
90 bool has = JSAPITreeSet::Has(thread, tset, key); in HWTEST_F_L0() local
91 EXPECT_EQ(has, true); in HWTEST_F_L0()
126 // test has in HWTEST_F_L0()
127 bool has = JSAPITreeSet::Has(thread, tset, key); in HWTEST_F_L0() local
128 EXPECT_EQ(has, false); in HWTEST_F_L0()
135 // test has in HWTEST_F_L0()
136 bool has = JSAPITreeSet::Has(thread, tset, key); in HWTEST_F_L0() local
137 EXPECT_EQ(has, true); in HWTEST_F_L0()
157 // test has in HWTEST_F_L0()
[all …]

12345678910>>...63