Lines Matching full:be
47 expect(targetSet.size).to.be.equal(4);
48 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;
58 expect(set.size).to.be.equal(3);
59 expect(set.has(1)).to.be.true;
60 expect(set.has(2)).to.be.true;
61 expect(set.has(3)).to.be.true;
75 expect(areSetsEqual(set1, set2)).to.be.true;
81 expect(areSetsEqual(set1, set2)).to.be.false;
87 expect(areSetsEqual(set1, set2)).to.be.false;
96 expect(fileWhiteLists).to.be.undefined;
97 expect(projectWhiteListManager.getEnableAtKeep()).to.be.true;
98 …expect(projectWhiteListManager.getFileWhiteListsCachePath()).to.be.equal('test/ut/utils/obfuscatio…
99 …expect(projectWhiteListManager.getProjectWhiteListCachePath()).to.be.equal('test/ut/utils/obfuscat…
100 expect(projectWhiteListManager.getIsIncremental()).to.be.false;
101 expect(projectWhiteListManager.getFileWhiteListMap().size).to.be.equal(0);
106 expect(fileWhiteLists).to.not.be.undefined;
107 expect(fileWhiteLists.fileKeepInfo.keepSymbol?.globalNames).to.be.undefined;
108 expect(fileWhiteLists.fileKeepInfo.keepSymbol?.propertyNames).to.be.undefined;
109 expect(fileWhiteLists.fileKeepInfo.keepAsConsumer?.globalNames).to.be.undefined;
110 expect(fileWhiteLists.fileKeepInfo.keepAsConsumer?.propertyNames).to.be.undefined;
111 expect(fileWhiteLists.fileKeepInfo.structProperties.size).to.be.equal(0);
112 expect(fileWhiteLists.fileKeepInfo.exported?.propertyNames.size).to.be.equal(0);
113 expect(fileWhiteLists.fileKeepInfo.exported?.globalNames.size).to.be.equal(0);
114 expect(fileWhiteLists.fileKeepInfo.enumProperties.size).to.be.equal(0);
115 expect(fileWhiteLists.fileKeepInfo.stringProperties.size).to.be.equal(0);
116 expect(fileWhiteLists.fileKeepInfo.arkUIKeepInfo?.propertyNames.size).to.be.equal(0);
117 expect(fileWhiteLists.fileKeepInfo.arkUIKeepInfo?.globalNames.size).to.be.equal(0);
118 expect(fileWhiteLists.fileReservedInfo.enumProperties.size).to.be.equal(0);
119 expect(fileWhiteLists.fileReservedInfo.propertyParams.size).to.be.equal(0);
129 expect(fileWhilteList?.fileKeepInfo.structProperties.has('test1')).to.be.true;
130 expect(fileWhilteList?.fileKeepInfo.enumProperties.has('test2')).to.be.true;
131 …rojectWhiteListManagerForTest.fileWhiteListInfo.fileKeepInfo.structProperties.size).to.be.equal(1);
132 …WhiteListManagerForTest.fileWhiteListInfo.fileKeepInfo.enumProperties.size).to.be.equal(1);
135 expect(fileWhilteList?.fileKeepInfo.structProperties.has('test1')).to.be.true;
136 expect(fileWhilteList?.fileKeepInfo.enumProperties.has('test2')).to.be.true;
137 expect(fileWhilteList?.fileKeepInfo.structProperties.has('test3')).to.be.true;
138 expect(fileWhilteList?.fileKeepInfo.enumProperties.has('test4')).to.be.true;
146 expect(fileWhilteList?.fileKeepInfo.structProperties.has('test1')).to.be.false;
147 expect(fileWhilteList?.fileKeepInfo.enumProperties.has('test2')).to.be.false;
148 expect(fileWhilteList?.fileKeepInfo.structProperties.has('test3')).to.be.true;
149 expect(fileWhilteList?.fileKeepInfo.enumProperties.has('test4')).to.be.true;
169 expect(fileWhilteList?.fileKeepInfo.keepSymbol?.globalNames.has('test1')).to.be.true;
170 expect(fileWhilteList?.fileKeepInfo.keepSymbol?.propertyNames.has('test2')).to.be.true;
171 expect(fileWhilteList?.fileKeepInfo.keepAsConsumer?.globalNames.has('test3')).to.be.true;
172 expect(fileWhilteList?.fileKeepInfo.keepAsConsumer?.propertyNames.has('test4')).to.be.true;
173 expect(fileWhilteList?.fileKeepInfo.structProperties.has('test5')).to.be.true;
174 expect(fileWhilteList?.fileKeepInfo.enumProperties.has('test6')).to.be.true;
175 expect(fileWhilteList?.fileKeepInfo.exported.globalNames.has('test7')).to.be.true;
176 expect(fileWhilteList?.fileKeepInfo.exported.propertyNames.has('test8')).to.be.true;
177 expect(fileWhilteList?.fileKeepInfo.stringProperties.has('test9')).to.be.true;
178 expect(fileWhilteList?.fileKeepInfo.arkUIKeepInfo.globalNames.has('test111')).to.be.true;
179 expect(fileWhilteList?.fileKeepInfo.arkUIKeepInfo.propertyNames.has('test112')).to.be.true;
180 expect(fileWhilteList?.fileReservedInfo.enumProperties.has('test10')).to.be.true;
181 expect(fileWhilteList?.fileReservedInfo.propertyParams.has('test11')).to.be.true;
182 expect(fileWhilteListTemp.fileKeepInfo.keepSymbol?.globalNames.size).to.be.equal(1);
183 expect(fileWhilteListTemp.fileKeepInfo.keepSymbol?.propertyNames.size).to.be.equal(1);
184 expect(fileWhilteListTemp.fileKeepInfo.keepAsConsumer?.globalNames.size).to.be.equal(1);
185 expect(fileWhilteListTemp.fileKeepInfo.keepAsConsumer?.propertyNames.size).to.be.equal(1);
186 expect(fileWhilteListTemp.fileKeepInfo.structProperties.size).to.be.equal(1);
187 expect(fileWhilteListTemp.fileKeepInfo.enumProperties.size).to.be.equal(1);
188 expect(fileWhilteListTemp.fileKeepInfo.exported.globalNames.size).to.be.equal(1);
189 expect(fileWhilteListTemp.fileKeepInfo.exported.propertyNames.size).to.be.equal(1);
190 expect(fileWhilteListTemp.fileKeepInfo.stringProperties.size).to.be.equal(1);
191 expect(fileWhilteListTemp.fileReservedInfo.enumProperties.size).to.be.equal(1);
192 expect(fileWhilteListTemp.fileReservedInfo.propertyParams.size).to.be.equal(1);
193 expect(fileWhilteListTemp.fileKeepInfo.arkUIKeepInfo.globalNames.size).to.be.equal(1);
194 expect(fileWhilteListTemp.fileKeepInfo.arkUIKeepInfo.propertyNames.size).to.be.equal(1);
214 expect(fileWhilteList?.fileKeepInfo.keepSymbol?.globalNames).to.be.undefined;
215 expect(fileWhilteList?.fileKeepInfo.keepSymbol?.propertyNames).to.be.undefined;
216 expect(fileWhilteList?.fileKeepInfo.keepAsConsumer?.globalNames).to.be.undefined;
217 expect(fileWhilteList?.fileKeepInfo.keepAsConsumer?.propertyNames).to.be.undefined;
218 expect(fileWhilteList?.fileKeepInfo.structProperties.has('test5')).to.be.true;
219 expect(fileWhilteList?.fileKeepInfo.enumProperties.has('test6')).to.be.true;
220 expect(fileWhilteList?.fileKeepInfo.exported.globalNames.has('test7')).to.be.true;
221 expect(fileWhilteList?.fileKeepInfo.exported.propertyNames.has('test8')).to.be.true;
222 expect(fileWhilteList?.fileKeepInfo.stringProperties.has('test9')).to.be.true;
223 expect(fileWhilteList?.fileKeepInfo.arkUIKeepInfo.globalNames.has('test111')).to.be.true;
224 expect(fileWhilteList?.fileKeepInfo.arkUIKeepInfo.propertyNames.has('test112')).to.be.true;
225 expect(fileWhilteList?.fileReservedInfo.enumProperties.has('test10')).to.be.true;
226 expect(fileWhilteList?.fileReservedInfo.propertyParams.has('test11')).to.be.true;
266 expect(compareFiles(fileWhiteLists, fileWhiteLists_expected)).to.be.true;
267 expect(compareFiles(projectWhiteLists, projectWhiteLists_expected)).to.be.true;
268 expect(AtKeepCollections.keepSymbol.globalNames.size==0).to.be.true;
269 expect(AtKeepCollections.keepSymbol.propertyNames.size==0).to.be.true;
270 expect(AtKeepCollections.keepAsConsumer.globalNames.size==0).to.be.true;
271 expect(AtKeepCollections.keepAsConsumer.propertyNames.size==0).to.be.true;
272 expect(UnobfuscationCollections.reservedStruct.size==0).to.be.true;
273 expect(UnobfuscationCollections.reservedEnum.size==0).to.be.true;
274 expect(UnobfuscationCollections.reservedExportName.size==0).to.be.true;
275 expect(UnobfuscationCollections.reservedExportNameAndProp.size==0).to.be.true;
276 expect(UnobfuscationCollections.reservedStrProp.size==0).to.be.true;
277 expect(ApiExtractor.mConstructorPropertySet.size==0).to.be.true;
278 expect(ApiExtractor.mEnumMemberSet.size==0).to.be.true;
279 expect(AtIntentCollections.globalNames.size==1).to.be.true;
280 expect(AtIntentCollections.propertyNames.size==1).to.be.true;
281 expect(AtIntentCollections.globalNames.has('test111')).to.be.true;
282 expect(AtIntentCollections.propertyNames.has('test112')).to.be.true;
316 expect(compareFiles(fileWhiteLists, fileWhiteLists_expected)).to.be.true;
317 expect(compareFiles(projectWhiteLists, projectWhiteLists_expected)).to.be.true;
318 expect(projectWhiteListManager.getShouldReObfuscate()).to.be.true;
319 expect(AtKeepCollections.keepSymbol.globalNames.has('test1')).to.be.true;
320 expect(AtKeepCollections.keepSymbol.propertyNames.has('test2')).to.be.true;
321 expect(AtKeepCollections.keepAsConsumer.globalNames.has('test3')).to.be.true;
322 expect(AtKeepCollections.keepAsConsumer.propertyNames.has('test4')).to.be.true;
323 expect(AtKeepCollections.keepSymbol.globalNames.has('test32')).to.be.true;
324 expect(UnobfuscationCollections.reservedStruct.has('test01')).to.be.true;
325 expect(UnobfuscationCollections.reservedEnum.has('test02')).to.be.true;
326 expect(UnobfuscationCollections.reservedStruct.has('test5')).to.be.true;
327 expect(UnobfuscationCollections.reservedEnum.has('test6')).to.be.true;
328 expect(UnobfuscationCollections.reservedExportName.has('test7')).to.be.true;
329 expect(UnobfuscationCollections.reservedExportNameAndProp.has('test8')).to.be.true;
330 expect(UnobfuscationCollections.reservedStrProp.has('test9')).to.be.true;
331 expect(ApiExtractor.mEnumMemberSet.has('test10')).to.be.true;
332 expect(ApiExtractor.mConstructorPropertySet.has('test11')).to.be.true;
333 expect(ApiExtractor.mConstructorPropertySet.has('test31')).to.be.true;
334 expect(UnobfuscationCollections.reservedExportName.has('test33')).to.be.true;
335 expect(UnobfuscationCollections.reservedExportNameAndProp.has('test12')).to.be.false;
336 expect(AtIntentCollections.globalNames.has('test122')).to.be.true;
337 expect(AtIntentCollections.propertyNames.has('test123')).to.be.true;
352 expect(compareFiles(fileWhiteLists, fileWhiteLists_expected)).to.be.true;
353 expect(compareFiles(projectWhiteLists, projectWhiteLists_expected)).to.be.true;
354 expect(projectWhiteListManager.getShouldReObfuscate()).to.be.false;
380 it('should be initialized correctly', () => {
382 …expect(filePathManager.getFilePathsCache()).to.be.equal('test/ut/utils/obfuscation/sourceFilePaths…
383 expect(filePathManager.getSourceFilePaths().size).to.be.equal(0);
384 expect(filePathManager.getDeletedSourceFilePaths().size).to.be.equal(0);
385 expect(filePathManager.getAddedSourceFilePaths().size).to.be.equal(0);
422 expect(compareFiles(sourceFilePaths, sourceFilePaths_expected)).to.be.true;
433 expect(compareFiles(sourceFilePaths, sourceFilePaths_expected)).to.be.true;
434 expect(filePathManager.getAddedSourceFilePaths().has(testFilePath4)).to.be.true;
435 expect(filePathManager.getDeletedSourceFilePaths().has(testFilePath2)).to.be.true;
443 it('should be initialized correctly', () => {
448 expect(fileContentManager.getTransformedFilesDir()).to.be.equal(transformedPath);
449 expect(fileContentManager.getFileNamesMapPath()).to.be.equal(fileNamesMapPath);
450 expect(fileContentManager.fileNamesMap.size).to.be.equal(0);
451 expect(fileContentManager.getIsIncremental()).to.be.equal(false);
452 expect(fs.existsSync(transformedPath)).to.be.equal(true);
541 expect(reservedFileContent01).to.be.deep.equal(fileContent01);
542 expect(reservedFileContent02).to.be.deep.equal(fileContent02);
553 expect(transformedFilePath03_before).to.be.undefined;
554 expect(reservedFileContent01_before).to.be.deep.equal(fileContent01);
555 expect(reservedFileContent02_before).to.be.deep.equal(fileContent02);
567 expect(transformedFilePath02).to.be.undefined;
570 expect(reservedFileContent01).to.be.deep.equal(fileContent01_updated);
571 expect(reservedFileContent03).to.be.deep.equal(fileContent03);
580 expect(sortedNames[0]).to.be.equal('file3');
581 expect(sortedNames[1]).to.be.equal('file4');
582 expect(sortedNames[2]).to.be.equal('file5');