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

Skip test modules in coverage report.

Coverage of the test code is useful during development but it does not seem worth adding it to the core code coverage report.
This commit is contained in:
David Steele
2023-01-28 16:22:04 +07:00
parent d5ef4ce747
commit 16c625353d

View File

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