private void calculateUncoveredBranches(TestChromosome newTestChromosome) { if (Properties.DSE_NEGATE_ALL_CONDITIONS == true) { final List<BranchCondition> pathCondition = pathConditions.get(newTestChromosome); for (BranchCondition targetBranchCondition : pathCondition) { if (!unsolvableBranchConditions.contains(targetBranchCondition)) { unsolvedBranchConditions .add(new TestBranchPair(newTestChromosome, pathCondition, targetBranchCondition)); } } } else { calculateUncoveredBranches(); } }
/** * Create path constraints for all tests in a test suite * * @param testSuite */ private void createPathConstraints(TestSuiteChromosome testSuite) { for (TestChromosome test : testSuite.getTestChromosomes()) { updatePathConstraints(test); } calculateUncoveredBranches(); }
calculateUncoveredBranches(); individual.addTest(newTest); wasSuccess = true; calculateUncoveredBranches(newTestChromosome); individual.addTest(newTest); originalFitness = getFitness(expandedTests);