Branch Coverage

blib/lib/Net/HTTPS/Any.pm
Criterion Covered Total %
branch 19 56 33.9


line true false branch
17 0 0 if defined $Net::HTTPS::Any::skip_NetSSLeay and $Net::HTTPS::Any::skip_NetSSLeay
26 0 3 if ($@)
37 0 3 unless ($Net::HTTPS::Any::ssl_module)
151 2 0 ref $_[0] ? :
155 0 2 if (exists $$opts{'args'} and ref $$opts{'args'} eq 'HASH') { }
0 4 elsif (exists $$opts{'args'} and ref $$opts{'args'} eq 'ARRAY') { }
167 0 2 if (ref $$opts{'headers'} eq 'HASH')
173 0 2 if (keys %$post_data)
180 2 0 if ($Net::HTTPS::Any::ssl_module eq 'Net::SSLeay') { }
0 0 elsif ($Net::HTTPS::Any::ssl_module eq 'Crypt::SSLeay') { }
187 0 2 if exists $$opts{'debug'} and $$opts{'debug'}
199 2 0 if $res_code =~ /^(HTTP\S+ )?(.*)/
208 0 0 unless $$opts{'port'} == 443
216 0 0 if exists $$opts{'debug'}
274 2 0 ref $_[0] ? :
278 2 0 if (exists $$opts{'args'} and ref $$opts{'args'} eq 'HASH') { }
0 0 elsif (exists $$opts{'args'} and ref $$opts{'args'} eq 'ARRAY') { }
284 0 2 if (exists $$opts{'content'})
293 0 2 if (ref $$opts{'headers'} eq 'HASH')
298 2 0 if ($Net::HTTPS::Any::ssl_module eq 'Net::SSLeay') { }
0 0 elsif ($Net::HTTPS::Any::ssl_module eq 'Crypt::SSLeay') { }
305 0 2 if exists $$opts{'debug'} and $$opts{'debug'}
308 2 0 ref $post_data ? :
310 0 2 if exists $$opts{'debug'} and $$opts{'debug'}
322 2 0 if $res_code =~ /^(HTTP\S+ )?(.*)/
331 0 0 unless $$opts{'port'} == 443
340 0 0 if exists $$opts{'debug'}
343 0 0 if (ref $post_data) { }