1
0
mirror of https://github.com/pgbackrest/pgbackrest.git synced 2025-01-18 04:58:51 +02:00

Update lcov settings.

Mark any coverage less that 100% as yellow, less that 90% as red.

Add comments to config file and make genhtml use it as well as lcov.
This commit is contained in:
David Steele 2018-03-20 09:47:51 -04:00
parent 07f38f584a
commit d34142dee8
2 changed files with 16 additions and 2 deletions

View File

@ -1,3 +1,17 @@
# LCOV Settings
# Specify if branch coverage data should be collected and processed
lcov_branch_coverage=1
# Specify the regular expression of lines to exclude from branch coverage
lcov_excl_br_line=[A-Z_]+\(|assert\(|testBegin\(
# Specify the regular expression of lines to exclude
lcov_excl_line=\{\+*uncovered|\{\+*uncoverable
# Coverage rate limits
genhtml_hi_limit = 100
genhtml_med_limit = 90
# Width of line coverage field in source code view
genhtml_line_field_width = 9

View File

@ -1177,8 +1177,8 @@ eval
if ($oStorageBackRest->exists($strLCovFile))
{
executeTest(
"genhtml ${strLCovFile} --branch-coverage --show-details --output-directory" .
" ${strBackRestBase}/test/coverage/c");
"genhtml ${strLCovFile} --config-file=${strBackRestBase}/test/src/lcov.conf" .
" --output-directory=${strBackRestBase}/test/coverage/c");
foreach my $strCodeModule (sort(keys(%{$hCoverageActual})))
{