diff options
| author | Peter Eisentraut | 2017-08-11 03:33:47 +0000 |
|---|---|---|
| committer | Peter Eisentraut | 2017-10-16 20:28:11 +0000 |
| commit | 421167362242ce1fb46d6d720798787e7cd65aad (patch) | |
| tree | 5f0c2620cd7364cd66404ca8a3433bb55d1291b3 /src/fe_utils | |
| parent | cf5ba7c30c0428f5ff49197ec1e0f052035300d6 (diff) | |
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 <[email protected]>
Diffstat (limited to 'src/fe_utils')
| -rw-r--r-- | src/fe_utils/psqlscan.l | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/fe_utils/psqlscan.l b/src/fe_utils/psqlscan.l index 4375142a007..44fcf7ee46e 100644 --- a/src/fe_utils/psqlscan.l +++ b/src/fe_utils/psqlscan.l @@ -71,6 +71,8 @@ typedef int YYSTYPE; extern int psql_yyget_column(yyscan_t yyscanner); extern void psql_yyset_column(int column_no, yyscan_t yyscanner); +/* LCOV_EXCL_START */ + %} %option reentrant @@ -899,6 +901,8 @@ other . %% +/* LCOV_EXCL_STOP */ + /* * Create a lexer working state struct. * |
