public static boolean checkIfCanInstrument(String className) { for (String s : ExcludedClasses.getPackagesShouldNotBeInstrumented()) { if (className.startsWith(s)) { return false; } } if(className.contains("EnhancerByMockito")){ //very special case, as Mockito will create classes on the fly return false; } if(className.contains("__CLR")) { // Instrumenting clover coverage instrumentation helper classes breaks clover return false; } return true; }
loadExcludedClassNames(); list.add(PackageInfo.getEvoSuitePackage()); list.addAll(excludedClasses);