Commit 0ac2f450 authored by ISWB Prasetya's avatar ISWB Prasetya
Browse files

trying some tweaks; but end up not installing it

parent ce6212af
......@@ -221,9 +221,11 @@ public class G2 {
target.refine() ;
worklist.evaluateAndPutBack(target) ;
//target.saveSuite() ;
// save a minimized version of the test suite:
target.saveMinimizedSuite();
target.saveSuite() ;
// save a minimized version of the test suite; however this seem to drop
// mutation kill rates in some situation; so I will just comment this out.
// Will later make it configurable.
//target.saveMinimizedSuite();
return 0 ;
}
).count() ; // use count to force the map to be executed
......@@ -289,11 +291,12 @@ public class G2 {
else t3log.warning(CUT.getName() + " is abstract or interface; but failed to find an implementation to target!");
if (abstractCUT) {
Method[] publicmethods = CUT.getMethods() ;
for (Method m : publicmethods) {
//Method[] publicmethods = CUT.getMethods() ;
Method[] CUTmethods = CUT.getDeclaredMethods() ;
for (Method m : CUTmethods) {
int m_ = m.getModifiers() ;
if (!Modifier.isAbstract(m_) && Modifier.isStatic(m_)) {
t3log.info(CUT.getName() + " is abstract, but it has at least one concrete public and static method; so we target the class too.");
t3log.info(CUT.getName() + " is abstract, but it has at least one concrete and static method; so we target the class too.");
g2s.add(new G2(CUTname,config)) ;
break ;
}
......
......@@ -209,6 +209,7 @@ public class ImplementationMap {
for (Constructor co : C.getDeclaredConstructors()) {
int m = co.getModifiers() ;
if (Modifier.isPublic(m) && ! Modifier.isAbstract(m)) instantiation.register(co) ;
//if (!Modifier.isPrivate(m) && ! Modifier.isAbstract(m)) instantiation.register(co) ;
}
}
for (Method m : getPublicCreatorMethods(C)) {
......@@ -286,6 +287,7 @@ public class ImplementationMap {
for (Method m : declaredmethods) {
int mod = m.getModifiers() ;
if(! Modifier.isStatic(mod) || ! Modifier.isPublic(mod) || Modifier.isAbstract(mod)) continue ;
//if(! Modifier.isStatic(mod) || Modifier.isPrivate(mod) || Modifier.isAbstract(mod)) continue ;
if(! C.isAssignableFrom(m.getReturnType())) continue ;
boolean takeC = false ;
for (Class D : m.getParameterTypes())
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment