org.evosuite.coverage.mutation.MutationExecutionResult Maven / Gradle / Ivy
The newest version!
/**
* Copyright (C) 2010-2018 Gordon Fraser, Andrea Arcuri and EvoSuite
* contributors
*
* This file is part of EvoSuite.
*
* EvoSuite is free software: you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as published
* by the Free Software Foundation, either version 3.0 of the License, or
* (at your option) any later version.
*
* EvoSuite is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with EvoSuite. If not, see .
*/
/**
*
*/
package org.evosuite.coverage.mutation;
import org.evosuite.testcase.execution.ExecutionResult;
/**
* MutationExecutionResult class.
*
* @author fraser
*/
public class MutationExecutionResult {
private int numAssertions = 0;
private double impact = 0.0;
boolean hasTimeout = false;
boolean hasException = false;
public MutationExecutionResult clone() {
MutationExecutionResult result = new MutationExecutionResult();
result.numAssertions = numAssertions;
result.impact = impact;
result.hasTimeout = hasTimeout;
result.hasException = hasException;
return result;
}
/**
* Getter for the field numAssertions
.
*
* @return the numAssertions
*/
public int getNumAssertions() {
return numAssertions;
}
/**
* Setter for the field numAssertions
.
*
* @param numAssertions
* the numAssertions to set
*/
public void setNumAssertions(int numAssertions) {
this.numAssertions = numAssertions;
}
/**
* Getter for the field impact
.
*
* @return the impact
*/
public double getImpact() {
return impact;
}
/**
* Setter for the field impact
.
*
* @param impact
* the impact to set
*/
public void setImpact(double impact) {
this.impact = impact;
}
/**
* hasTimeout
*
* @return the hasTimeout
*/
public boolean hasTimeout() {
return hasTimeout;
}
/**
* Setter for the field hasTimeout
.
*
* @param hasTimeout
* the hasTimeout to set
*/
public void setHasTimeout(boolean hasTimeout) {
this.hasTimeout = hasTimeout;
}
/**
* hasException
*
* @return the hasException
*/
public boolean hasException() {
return hasException;
}
/**
* Setter for the field hasException
.
*
* @param hasException a boolean.
*/
public void setHasException(boolean hasException) {
this.hasException = hasException;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy