use of org.evosuite.coverage.mutation.MutationExecutionResult in project evosuite by EvoSuite.
the class TestChromosome method copyCachedResults.
/* (non-Javadoc)
* @see org.evosuite.testcase.ExecutableChromosome#copyCachedResults(org.evosuite.testcase.ExecutableChromosome)
*/
/**
* {@inheritDoc}
*/
@Override
public void copyCachedResults(ExecutableChromosome other) {
if (test == null)
throw new RuntimeException("Test is null!");
if (other.lastExecutionResult != null) {
this.lastExecutionResult = other.lastExecutionResult.clone();
this.lastExecutionResult.setTest(this.test);
}
if (other.lastMutationResult != null) {
for (Mutation mutation : other.lastMutationResult.keySet()) {
// .clone();
MutationExecutionResult copy = other.lastMutationResult.get(mutation);
// copy.test = test;
this.lastMutationResult.put(mutation, copy);
}
}
}
Aggregations