mirror of
https://github.com/postgres/postgres.git
synced 2025-11-06 07:49:08 +03:00
Exclude flex-generated code from coverage testing
Flex generates a lot of functions that are not actually used. In order to avoid coverage figures being ruined by that, mark up the part of the .l files where the generated code appears by lcov exclusion markers. That way, lcov will typically only reported on coverage for the .l file, which is under our control, but not for the .c file. Reviewed-by: Michael Paquier <michael.paquier@gmail.com>
This commit is contained in:
@@ -57,6 +57,8 @@ static void record_config_file_error(const char *errmsg,
|
||||
static int GUC_flex_fatal(const char *msg);
|
||||
static char *GUC_scanstr(const char *s);
|
||||
|
||||
/* LCOV_EXCL_START */
|
||||
|
||||
%}
|
||||
|
||||
%option 8bit
|
||||
@@ -107,7 +109,7 @@ STRING \'([^'\\\n]|\\.|\'\')*\'
|
||||
|
||||
%%
|
||||
|
||||
|
||||
/* LCOV_EXCL_STOP */
|
||||
|
||||
/*
|
||||
* Exported function to read and process the configuration file. The
|
||||
|
||||
Reference in New Issue
Block a user