• Home
  • Raw
  • Download

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.fileReservedInfo.enumProperties.size).to.be.equal(0);
117 expect(fileWhiteLists.fileReservedInfo.propertyParams.size).to.be.equal(0);
127 expect(fileWhilteList?.fileKeepInfo.structProperties.has('test1')).to.be.true;
128 expect(fileWhilteList?.fileKeepInfo.enumProperties.has('test2')).to.be.true;
129 …rojectWhiteListManagerForTest.fileWhiteListInfo.fileKeepInfo.structProperties.size).to.be.equal(1);
130 …WhiteListManagerForTest.fileWhiteListInfo.fileKeepInfo.enumProperties.size).to.be.equal(1);
133 expect(fileWhilteList?.fileKeepInfo.structProperties.has('test1')).to.be.true;
134 expect(fileWhilteList?.fileKeepInfo.enumProperties.has('test2')).to.be.true;
135 expect(fileWhilteList?.fileKeepInfo.structProperties.has('test3')).to.be.true;
136 expect(fileWhilteList?.fileKeepInfo.enumProperties.has('test4')).to.be.true;
144 expect(fileWhilteList?.fileKeepInfo.structProperties.has('test1')).to.be.false;
145 expect(fileWhilteList?.fileKeepInfo.enumProperties.has('test2')).to.be.false;
146 expect(fileWhilteList?.fileKeepInfo.structProperties.has('test3')).to.be.true;
147 expect(fileWhilteList?.fileKeepInfo.enumProperties.has('test4')).to.be.true;
165 expect(fileWhilteList?.fileKeepInfo.keepSymbol?.globalNames.has('test1')).to.be.true;
166 expect(fileWhilteList?.fileKeepInfo.keepSymbol?.propertyNames.has('test2')).to.be.true;
167 expect(fileWhilteList?.fileKeepInfo.keepAsConsumer?.globalNames.has('test3')).to.be.true;
168 expect(fileWhilteList?.fileKeepInfo.keepAsConsumer?.propertyNames.has('test4')).to.be.true;
169 expect(fileWhilteList?.fileKeepInfo.structProperties.has('test5')).to.be.true;
170 expect(fileWhilteList?.fileKeepInfo.enumProperties.has('test6')).to.be.true;
171 expect(fileWhilteList?.fileKeepInfo.exported.globalNames.has('test7')).to.be.true;
172 expect(fileWhilteList?.fileKeepInfo.exported.propertyNames.has('test8')).to.be.true;
173 expect(fileWhilteList?.fileKeepInfo.stringProperties.has('test9')).to.be.true;
174 expect(fileWhilteList?.fileReservedInfo.enumProperties.has('test10')).to.be.true;
175 expect(fileWhilteList?.fileReservedInfo.propertyParams.has('test11')).to.be.true;
176 expect(fileWhilteListTemp.fileKeepInfo.keepSymbol?.globalNames.size).to.be.equal(1);
177 expect(fileWhilteListTemp.fileKeepInfo.keepSymbol?.propertyNames.size).to.be.equal(1);
178 expect(fileWhilteListTemp.fileKeepInfo.keepAsConsumer?.globalNames.size).to.be.equal(1);
179 expect(fileWhilteListTemp.fileKeepInfo.keepAsConsumer?.propertyNames.size).to.be.equal(1);
180 expect(fileWhilteListTemp.fileKeepInfo.structProperties.size).to.be.equal(1);
181 expect(fileWhilteListTemp.fileKeepInfo.enumProperties.size).to.be.equal(1);
182 expect(fileWhilteListTemp.fileKeepInfo.exported.globalNames.size).to.be.equal(1);
183 expect(fileWhilteListTemp.fileKeepInfo.exported.propertyNames.size).to.be.equal(1);
184 expect(fileWhilteListTemp.fileKeepInfo.stringProperties.size).to.be.equal(1);
185 expect(fileWhilteListTemp.fileReservedInfo.enumProperties.size).to.be.equal(1);
186 expect(fileWhilteListTemp.fileReservedInfo.propertyParams.size).to.be.equal(1);
204 expect(fileWhilteList?.fileKeepInfo.keepSymbol?.globalNames).to.be.undefined;
205 expect(fileWhilteList?.fileKeepInfo.keepSymbol?.propertyNames).to.be.undefined;
206 expect(fileWhilteList?.fileKeepInfo.keepAsConsumer?.globalNames).to.be.undefined;
207 expect(fileWhilteList?.fileKeepInfo.keepAsConsumer?.propertyNames).to.be.undefined;
208 expect(fileWhilteList?.fileKeepInfo.structProperties.has('test5')).to.be.true;
209 expect(fileWhilteList?.fileKeepInfo.enumProperties.has('test6')).to.be.true;
210 expect(fileWhilteList?.fileKeepInfo.exported.globalNames.has('test7')).to.be.true;
211 expect(fileWhilteList?.fileKeepInfo.exported.propertyNames.has('test8')).to.be.true;
212 expect(fileWhilteList?.fileKeepInfo.stringProperties.has('test9')).to.be.true;
213 expect(fileWhilteList?.fileReservedInfo.enumProperties.has('test10')).to.be.true;
214 expect(fileWhilteList?.fileReservedInfo.propertyParams.has('test11')).to.be.true;
252 expect(compareFiles(fileWhiteLists, fileWhiteLists_expected)).to.be.true;
253 expect(compareFiles(projectWhiteLists, projectWhiteLists_expected)).to.be.true;
254 expect(AtKeepCollections.keepSymbol.globalNames.size==0).to.be.true;
255 expect(AtKeepCollections.keepSymbol.propertyNames.size==0).to.be.true;
256 expect(AtKeepCollections.keepAsConsumer.globalNames.size==0).to.be.true;
257 expect(AtKeepCollections.keepAsConsumer.propertyNames.size==0).to.be.true;
258 expect(UnobfuscationCollections.reservedStruct.size==0).to.be.true;
259 expect(UnobfuscationCollections.reservedEnum.size==0).to.be.true;
260 expect(UnobfuscationCollections.reservedExportName.size==0).to.be.true;
261 expect(UnobfuscationCollections.reservedExportNameAndProp.size==0).to.be.true;
262 expect(UnobfuscationCollections.reservedStrProp.size==0).to.be.true;
263 expect(ApiExtractor.mConstructorPropertySet.size==0).to.be.true;
264 expect(ApiExtractor.mEnumMemberSet.size==0).to.be.true;
296 expect(compareFiles(fileWhiteLists, fileWhiteLists_expected)).to.be.true;
297 expect(compareFiles(projectWhiteLists, projectWhiteLists_expected)).to.be.true;
298 expect(projectWhiteListManager.getShouldReObfuscate()).to.be.true;
299 expect(AtKeepCollections.keepSymbol.globalNames.has('test1')).to.be.true;
300 expect(AtKeepCollections.keepSymbol.propertyNames.has('test2')).to.be.true;
301 expect(AtKeepCollections.keepAsConsumer.globalNames.has('test3')).to.be.true;
302 expect(AtKeepCollections.keepAsConsumer.propertyNames.has('test4')).to.be.true;
303 expect(AtKeepCollections.keepSymbol.globalNames.has('test32')).to.be.true;
304 expect(UnobfuscationCollections.reservedStruct.has('test01')).to.be.true;
305 expect(UnobfuscationCollections.reservedEnum.has('test02')).to.be.true;
306 expect(UnobfuscationCollections.reservedStruct.has('test5')).to.be.true;
307 expect(UnobfuscationCollections.reservedEnum.has('test6')).to.be.true;
308 expect(UnobfuscationCollections.reservedExportName.has('test7')).to.be.true;
309 expect(UnobfuscationCollections.reservedExportNameAndProp.has('test8')).to.be.true;
310 expect(UnobfuscationCollections.reservedStrProp.has('test9')).to.be.true;
311 expect(ApiExtractor.mEnumMemberSet.has('test10')).to.be.true;
312 expect(ApiExtractor.mConstructorPropertySet.has('test11')).to.be.true;
313 expect(ApiExtractor.mConstructorPropertySet.has('test31')).to.be.true;
314 expect(UnobfuscationCollections.reservedExportName.has('test33')).to.be.true;
315 expect(UnobfuscationCollections.reservedExportNameAndProp.has('test12')).to.be.false;
330 expect(compareFiles(fileWhiteLists, fileWhiteLists_expected)).to.be.true;
331 expect(compareFiles(projectWhiteLists, projectWhiteLists_expected)).to.be.true;
332 expect(projectWhiteListManager.getShouldReObfuscate()).to.be.false;
340 it('should be initialized correctly', () => {
342 …expect(filePathManager.getFilePathsCache()).to.be.equal('test/ut/utils/obfuscation/sourceFilePaths…
343 expect(filePathManager.getSourceFilePaths().size).to.be.equal(0);
344 expect(filePathManager.getDeletedSourceFilePaths().size).to.be.equal(0);
345 expect(filePathManager.getAddedSourceFilePaths().size).to.be.equal(0);
382 expect(compareFiles(sourceFilePaths, sourceFilePaths_expected)).to.be.true;
393 expect(compareFiles(sourceFilePaths, sourceFilePaths_expected)).to.be.true;
394 expect(filePathManager.getAddedSourceFilePaths().has(testFilePath4)).to.be.true;
395 expect(filePathManager.getDeletedSourceFilePaths().has(testFilePath2)).to.be.true;
403 it('should be initialized correctly', () => {
408 expect(fileContentManager.getTransformedFilesDir()).to.be.equal(transformedPath);
409 expect(fileContentManager.getFileNamesMapPath()).to.be.equal(fileNamesMapPath);
410 expect(fileContentManager.fileNamesMap.size).to.be.equal(0);
411 expect(fileContentManager.getIsIncremental()).to.be.equal(false);
412 expect(fs.existsSync(transformedPath)).to.be.equal(true);
501 expect(reservedFileContent01).to.be.deep.equal(fileContent01);
502 expect(reservedFileContent02).to.be.deep.equal(fileContent02);
513 expect(transformedFilePath03_before).to.be.undefined;
514 expect(reservedFileContent01_before).to.be.deep.equal(fileContent01);
515 expect(reservedFileContent02_before).to.be.deep.equal(fileContent02);
527 expect(transformedFilePath02).to.be.undefined;
530 expect(reservedFileContent01).to.be.deep.equal(fileContent01_updated);
531 expect(reservedFileContent03).to.be.deep.equal(fileContent03);
540 expect(sortedNames[0]).to.be.equal('file3');
541 expect(sortedNames[1]).to.be.equal('file4');
542 expect(sortedNames[2]).to.be.equal('file5');