classCoverageThresholds
final class CoverageThresholds
Reads the per-source coverage thresholds of the configuration.
Methods§
public function read(mixed $value, array<string, Source> $sources): array<string, float>Reads coverage.sources.
Parameters
$value | mixed | The decoded coverage.sources mapping |
$sources | array<string, Source> | The declared sources by ID |
Returns
array<string, float> The thresholds by source IDThrows
InvalidInputException When a threshold names an unknown source or is not a percentageTest cases 4
Called from 1
Calls 3
- static-call Fields::mapping() line 29
- new InvalidInputException line 31
- static-call Fields::percentage() line 33
Test cases 15§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 4
Other tests reaching this symbol 11
LoaderTestcallsMarkdownDocumentTestcallsApplicationTestcallsCommandHandlerTestcallsCommandLineTestcallsExecutorTestcallsFormatterTestcallsAnalyzerTestcallsCoverageTestcallsSnapshotTestcallsVerifierTestcalls