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

src/backend/utils/adt/jsonpath_scan.l

index be0a2cfa2f746a456a536561b213b03ecab75761..f723462a1f75a547f28b059ddf30634e926b8843 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)
 {