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

Breadcrumb

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

function Text::printCoverageCounts

1 call to Text::printCoverageCounts()
Text::process in vendor/phpunit/php-code-coverage/src/Report/Text.php

File

vendor/phpunit/php-code-coverage/src/Report/Text.php, line 295

Class

Text

Namespace

SebastianBergmann\CodeCoverage\Report

Code

private function printCoverageCounts(int $numberOfCoveredElements, int $totalNumberOfElements, int $precision) : string {
    $format = '%' . $precision . 's';
    return Percentage::fromFractionAndTotal($numberOfCoveredElements, $totalNumberOfElements)->asFixedWidthString() . ' (' . sprintf($format, $numberOfCoveredElements) . '/' . sprintf($format, $totalNumberOfElements) . ')';
}
RSS feed
Powered by Drupal