Skip to content

Commit

Permalink
Reformat
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexDenisov committed Jul 15, 2024
1 parent be218c7 commit e3bd250
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions tools/mull-runner/mull-runner.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -237,20 +237,21 @@ int main(int argc, char **argv) {
mutantRunner.runMutants(testProgram, extraArgs, filteredMutants);

// Count surviving mutants, for later
std::size_t surviving =
std::count_if(std::cbegin(mutationResults), std::cend(mutationResults), [](auto const& resPtr) {
return resPtr->getExecutionResult().status == mull::ExecutionStatus::Passed;
});
std::size_t surviving = std::count_if(
std::cbegin(mutationResults), std::cend(mutationResults), [](auto const &resPtr) {
return resPtr->getExecutionResult().status == mull::ExecutionStatus::Passed;
});

// Calculate mutation score for later threshold comparison
int killedMutantsCount = 0;
int totalMutantsCount = 0;
int killedMutantsCount = 0;
int totalMutantsCount = 0;

for (auto &mutationResult : mutationResults) {
auto &executionResult = mutationResult->getExecutionResult();

totalMutantsCount++;
if ((executionResult.status != mull::ExecutionStatus::NotCovered) && (executionResult.status != mull::ExecutionStatus::Passed)) {
if ((executionResult.status != mull::ExecutionStatus::NotCovered) &&
(executionResult.status != mull::ExecutionStatus::Passed)) {
killedMutantsCount++;
}
}
Expand Down

0 comments on commit e3bd250

Please sign in to comment.