Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. RawCodeCoverageData.php

function RawCodeCoverageData::fromUncoveredFile

1 call to RawCodeCoverageData::fromUncoveredFile()
CodeCoverage::addUncoveredFilesFromFilter in vendor/phpunit/php-code-coverage/src/CodeCoverage.php

File

vendor/phpunit/php-code-coverage/src/Data/RawCodeCoverageData.php, line 87

Class

RawCodeCoverageData
@internal This class is not covered by the backward compatibility promise for phpunit/php-code-coverage

Namespace

SebastianBergmann\CodeCoverage\Data

Code

public static function fromUncoveredFile(string $filename, FileAnalyser $analyser) : self {
    $lineCoverage = [];
    foreach ($analyser->executableLinesIn($filename) as $line => $branch) {
        $lineCoverage[$line] = Driver::LINE_NOT_EXECUTED;
    }
    return new self([
        $filename => $lineCoverage,
    ], []);
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal