Condition Coverage

lib/LEOCHARRE/HTML/Text.pm
Criterion Covered Total %
condition 2 28 7.1


and 2 conditions

line l !l condition
22 0 0 carp('Missing argument.') and return
25 0 0 carp(q[Don't understand the source type, is it html, url, or file???]) and return
30 0 0 warn("Don't know what to do with arg '${arg}'\n") && (return)
35 0 0 warn "Could not get html.\n" and return
39 0 0 warn "Could not generate text from html.\n" and return
63 0 0 carp("It seems '${arg}' produces no output.\n") and return
78 0 0 carp("It seems '${arg}' produces no output.\n") and return
89 0 0 carp("It seems '${arg}' produces no output.\n") and return

and 3 conditions

line !l l&&!r l&&r condition
51 0 0 0 $arg =~ /^http|\.com$|\.net$|\.org$/ and not $arg =~ /\s/
0 0 0 $arg =~ /^http|\.com$|\.net$|\.org$/ and not $arg =~ /\s/ and length $arg < 300
62 1 0 0 $? and carp("Something went wrong with wget, $?\n")
77 3 0 0 $? and carp("Something went wrong with wget, $?\n")