Condition Coverage

blib/lib/MR/AsyncHTTP.pm
Criterion Covered Total %
condition 15 40 37.5


and 2 conditions

line l !l condition
354 2 3 $nonblocking_on && 2048

and 3 conditions

line !l l&&!r l&&r condition
112 0 0 6 $r and $$r{'hostname'}
0 0 6 $r and $$r{'hostname'} and $$r{'proto'} eq 'http'
153 0 0 2 $wr && syswrite($sock, "GET $$r{'uri'} HTTP/1.1\n")
155 0 0 6 $wr && syswrite($sock, "${key}: $value\n")
157 0 0 2 $wr && syswrite($sock, "\n")
214 1 0 1 defined $rd and $rd == 0
288 0 0 0 $res and $$res{'id'}
0 0 0 $res and $$res{'id'} and $$res{'done'}
319 0 0 6 $url and $url =~ m[^([hH][tT][tT][pP])://([^/]+)(.*)$]
334 0 0 5 $$self{'opt'}{'resolve_cache'} and $$self{'opt'}{'resolve_cache'} ne 'local'
0 5 0 $$self{'opt'}{'resolve_cache'} and $$self{'opt'}{'resolve_cache'} ne 'local' and exists $$global_resolve_cache{$hostname}

or 2 conditions

line l !l condition
351 3 2 $nonblocking_on ||= 0

or 3 conditions

line l !l&&r !l&&!r condition
151 0 2 0 $$headers{'User-Agent'} ||= "perl/MR::AsyncHTTP $VERSION"