1
0
mirror of https://github.com/pgbackrest/pgbackrest.git synced 2025-07-17 01:12:23 +02:00

Exclude documentation code coverage from metrics report.

Coverage of the documentation code is not important enough to report to users. If it were reported it should be in a separate section (along with test code coverage).
This commit is contained in:
David Steele
2024-05-23 10:58:52 +10:00
parent 91156bf7e1
commit 04b0437976

View File

@ -984,8 +984,8 @@ sub coverageDocSummaryGenerate
foreach my $strFileCov (sort(keys(%{$rhManifest})))
{
# Skip test modules (this includes modules that start with src/ since src/ is stripped from core modules)
next if $strFileCov =~ /^test\// || $strFileCov =~ /^src\//;
# Skip doc/test modules (this includes modules that start with src/ since src/ is stripped from core modules)
next if $strFileCov =~ /^doc\// || $strFileCov =~ /^test\// || $strFileCov =~ /^src\//;
if ($strFileCov =~ /\.lcov$/)
{