Add lcov exclusion markers to jsonpath scanner
authorPeter Eisentraut
Tue, 26 May 2020 12:09:36 +0000 (14:09 +0200)
committerPeter Eisentraut
Tue, 26 May 2020 12:11:39 +0000 (14:11 +0200)
This was done for all scanners in
421167362242ce1fb46d6d720798787e7cd65aad but not added to the new one.

src/backend/utils/adt/jsonpath_scan.l

index e35636883a1e9c6a9e3721445f862cb283248053..43811ea1270a348eb4193e38a06b86a1d181c089 100644 (file)
@@ -43,6 +43,8 @@ fprintf_to_ereport(const char *fmt, const char *msg)
    ereport(ERROR, (errmsg_internal("%s", msg)));
 }
 
+/* LCOV_EXCL_START */
+
 %}
 
 %option 8bit
@@ -271,6 +273,8 @@ hex_fail    \\x{hex_dig}{0,1}
 
 %%
 
+/* LCOV_EXCL_STOP */
+
 void
 jsonpath_yyerror(JsonPathParseResult **result, const char *message)
 {