Hal\MutaTesting\Mutation\Consolidation\SourceFileService::getScore PHP Method

getScore() public method

public getScore ( $file )
    public function getScore($file)
    {
        $mutants = $this->getMutants($file);
        $survivors = $this->getSurvivors($file);
        if ($mutants->count() === 0) {
            return '--';
        }
        return 100 - ceil($survivors->count() / $mutants->count() * 100);
    }