lcov: Exclude unreachable-by-design lines

parent 5801823d
...@@ -107,7 +107,7 @@ QUIET = $(QUIET_@AM_V@) ...@@ -107,7 +107,7 @@ QUIET = $(QUIET_@AM_V@)
coverage/lcov.info: gcov coverage/lcov.info: gcov
if HAVE_LCOV if HAVE_LCOV
$(AM_V_at)@mkdir $(builddir)/coverage $(AM_V_at)@mkdir $(builddir)/coverage
$(AM_V_GEN) $(LCOV) $(QUIET) -c -d . -o $(builddir)/coverage/lcov.info $(AM_V_GEN) $(LCOV) $(QUIET) --config-file $(srcdir)/lcovrc -c -d . -o $(builddir)/coverage/lcov.info
else else
@echo "=================================================" @echo "================================================="
@echo "You need lcov installed to generate coverage data" @echo "You need lcov installed to generate coverage data"
......
lcov_excl_line = default:|INCOMPL\(\)|WRONG
...@@ -1120,6 +1120,7 @@ const struct vdp VDP_pesi = { ...@@ -1120,6 +1120,7 @@ const struct vdp VDP_pesi = {
* transport interface * transport interface
*/ */
//LCOV_EXCL_START
static int v_matchproto_(vtr_minimal_response_f) static int v_matchproto_(vtr_minimal_response_f)
vped_minimal_response(struct req *req, uint16_t status) vped_minimal_response(struct req *req, uint16_t status)
{ {
...@@ -1127,6 +1128,7 @@ vped_minimal_response(struct req *req, uint16_t status) ...@@ -1127,6 +1128,7 @@ vped_minimal_response(struct req *req, uint16_t status)
(void)status; (void)status;
WRONG("esi:includes should not try minimal responses"); WRONG("esi:includes should not try minimal responses");
} }
//LCOV_EXCL_STOP
static void v_matchproto_(vtr_reembark_f) static void v_matchproto_(vtr_reembark_f)
vped_reembark(struct worker *wrk, struct req *req) vped_reembark(struct worker *wrk, struct req *req)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment