Skip to content

Commit

Permalink
Removed the old recognition classes
Browse files Browse the repository at this point in the history
  • Loading branch information
oscarlvp committed May 9, 2018
1 parent 997cdae commit 5134117
Show file tree
Hide file tree
Showing 6 changed files with 1 addition and 238 deletions.
Expand Up @@ -10,30 +10,21 @@ public class MethodInspector extends MethodVisitor {
private Method method;
private MutationPointFinder finder;
private LineCounter lineCounter;
private StopMethodRecognizer recognizer;

public MethodInspector(Method method, MutationPointFinder finder) {
super(Opcodes.ASM5);

this.method = method; //TODO: Verify is not null
this.finder = finder; //TODO: Verify is not null
lineCounter = new LineCounter();
recognizer = new StopMethodRecognizer();
}

@Override
public void visitCode() {

}

@Override
public void visitEnd() {
if(!recognizer.isOnFinalState()) {
finder.registerMutations(method, lineCounter.getFirstLine(), lineCounter.getLine());
}
finder.registerMutations(method, lineCounter.getFirstLine(), lineCounter.getLine());
}


@Override
public void visitLineNumber(int line, Label start) {
lineCounter.registerLine(line);
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

@@ -1,10 +1,7 @@
package eu.stamp_project.mutationtest.descartes.stopmethods;


import static org.pitest.bytecode.analysis.InstructionMatchers.opCode;
import static org.pitest.bytecode.analysis.InstructionMatchers.isA;

import org.objectweb.asm.Opcodes;
import org.objectweb.asm.tree.*;
import org.pitest.bytecode.analysis.ClassTree;
import org.pitest.bytecode.analysis.MethodTree;
Expand Down

This file was deleted.

0 comments on commit 5134117

Please sign in to comment.