/** * <p> * getBranchExpressionValue * </p> * * @return a boolean. */ public boolean getBranchExpressionValue() { return goal.getValue(); }
/** * <p> * getBranchExpressionValue * </p> * * @return a boolean. */ public boolean getBranchExpressionValue() { return goal.getValue(); }
public boolean getValue() { return goal.getValue(); }
public boolean getValue() { return branchGoal.getValue(); }
public boolean getValue() { return goal.getValue(); }
public boolean getValue() { return branchGoal.getValue(); }
@Override public double getFitness(TestChromosome individual, ExecutionResult result) { double fitness = 0.0; if (branchGoal.getBranch() == null) { fitness = getMethodCallDistance(result); } else if (branchGoal.getValue()) { fitness = getPredicateDistance(result.getTrace().getTrueDistancesContext()); } else { fitness = getPredicateDistance(result.getTrace().getFalseDistancesContext()); } updateIndividual(this, individual, fitness); if (fitness == 0.0) { individual.getTestCase().addCoveredGoal(this); } if (Properties.TEST_ARCHIVE) { Archive.getArchiveInstance().updateArchive(this, individual, fitness); } return fitness; }
@Override public double getFitness(TestChromosome individual, ExecutionResult result) { double fitness = 0.0; if (branchGoal.getBranch() == null) { fitness = getMethodCallDistance(result); } else if (branchGoal.getValue()) { fitness = getPredicateDistance(result.getTrace().getTrueDistancesContext()); } else { fitness = getPredicateDistance(result.getTrace().getFalseDistancesContext()); } updateIndividual(this, individual, fitness); if (fitness == 0.0) { individual.getTestCase().addCoveredGoal(this); } if (Properties.TEST_ARCHIVE) { Archive.getArchiveInstance().updateArchive(this, individual, fitness); } return fitness; }