Devel--Cover icon indicating copy to clipboard operation
Devel--Cover copied to clipboard

0 coverage reported on empty row

Open szabgab opened this issue 4 years ago • 1 comments

I was looking at this report http://cpancover.com/latest/Mojolicious-8.71/blib-lib-Mojo-IOLoop-Client-pm.html and saw a number of strange things: Between rows 13-14 there are two empty rows that are marked with 0 coverage. 13-14 There are a number of other places as well that show no code, but 0 statement coverage

szabgab avatar Jan 19 '21 10:01 szabgab

I observe this at both lines 13 and 19 of http://cpancover.com/latest//Mojolicious-9.22/blib-lib-Mojo-IOLoop-Client-pm.html. In both cases a constant is being declared based on the result of a ternary condition, the last part of which is an eval {}. My guess is that something inside the eval is not being exercised in the test suite. But this is probably a situation not previously encountered by D-C.

jkeenan avatar Nov 24 '21 14:11 jkeenan