Branch Coverage

blib/lib/Plack/Client.pm
Criterion Covered Total %
branch 23 38 60.5


line true false branch
26 0 8 if (blessed $backend and $backend->isa('Plack::Client::Backend')) { }
0 8 elsif (reftype $backend eq 'CODE') { }
8 0 elsif (ref $backend) { }
36 0 8 unless $backend_class->isa('Plack::Client::Backend')
38 0 0 reftype $backend eq 'ARRAY' ? :
8 0 reftype $backend eq 'HASH' ? :
58 76 0 if blessed $scheme
60 76 0 if defined $backend
61 0 0 if $scheme eq 'https'
81 6 70 if $$env{'REQUEST_METHOD'} eq 'HEAD'
90 12 64 if (blessed($_[0])) { }
6 58 elsif ((reftype($_[0]) || '') eq 'HASH') { }
91 6 6 if ($_[0]->isa('HTTP::Request')) { }
6 0 elsif ($_[0]->isa('Plack::Request')) { }
142 32 32 if ($scheme ne 'http' and $scheme ne 'https')
143 0 32 if ($scheme =~ /-ssl$/) { }
169 0 76 unless $app
178 62 14 if (ref $psgi_res eq 'CODE')
189 0 76 if (ref $psgi_res ne 'ARRAY')