src/Mutant/MetricsCalculator.php
public function getCoverageRate(): float
    {
        $coveredRate = 0;
        $coveredByTestsTotal = $this->totalMutantsCount - $this->notCoveredByTestsCount;

        if ($this->totalMutantsCount) {
            $coveredRate = floor(100 * $coveredByTestsTotal / $this->totalMutantsCount);
        }

        return $coveredRate;
    }
public function getCoverageRate(): float
    {
        $coveredRate = 0;
        $coveredByTestsTotal = $this->totalMutantsCount - $this->notCoveredByTestsCount;

        if ($this->totalMutantsCount) {
            $coveredRate = floor(100 * $coveredByTestsTotal / $this->totalMutantsCount);
        }

        return $coveredRate;
    }
public function getCoverageRate ( ) : float { $ coveredRate = 0 ; $ coveredByTestsTotal = $ this -> totalMutantsCount - $ this -> notCoveredByTestsCount ; if ( $ this -> totalMutantsCount ) { $ coveredRate = floor ( 100 * $ coveredByTestsTotal / $ this -> totalMutantsCount ) ; } return $ coveredRate ; }
Mutation coverage percentage
Mutation coverage percentage