Branch Coverage

blib/lib/Weixin/UserAgent.pm
Criterion Covered Total %
branch 0 38 0.0


line true false branch
49 0 0 unless ($hdrs->user_agent)
53 0 0 if ($uri->can('userinfo') and $uri->userinfo and not $hdrs->authorization)
56 0 0 if ($uri->scheme)
61 0 0 unless exists $$opts{$_}
66 0 0 if ($$opts{'request_timeout'})
97 0 0 if $prev
100 0 0 if (defined $$hdrs{'HTTPVersion'})
103 0 0 if (my $hdr = $$hdrs{'set-cookie'})
112 0 0 if (keys %$hdrs)
115 0 0 if ($res->code >= 590 and $res->code <= 599 and $res->message)
116 0 0 if ($res->message eq 'Connection timed out')
119 0 0 unless ($res->header('client-warning'))
123 0 0 if (defined $body)
130 0 0 if ($code == 301 or $code == 302 or $code == 303 or $code == 307 or $code == 308) { }
141 0 0 defined $count ? :
0 0 unless (defined $count ? $count : ($count = $$opts{'max_redirects'}))
153 0 0 if ($code == 302 || $code == 303 and not $meth eq 'GET' || $meth eq 'HEAD')
163 0 0 defined $uri ? :
166 0 0 if ($proto eq 'https' and $uri->scheme eq 'http')