Branch Coverage

blib/lib/Net/HTTPS/NB.pm
Criterion Covered Total %
branch 14 32 43.7


line true false branch
131 0 7 if (substr($name, 0, 4) eq 'SSL_')
136 0 3 unless (exists $args{'PeerPort'})
141 0 3 unless my $self = 'Net::HTTP'->new(%args)
145 0 3 unless $class->start_SSL($self, %ssl_opts, 'SSL_startHandshake', 0)
148 2 1 if (not exists $args{'Blocking'} or $args{'Blocking'})
150 2 0 unless $self->connected
170 0 5 if (exists ${*$self;}{'httpsnb_connected'})
175 2 3 if (${*$self;}{'httpsnb_super_connected'})
178 0 2 if ($self->connect_SSL)
184 2 1 if ($self->SUPER::connected)
191 0 1 if ($! = $self->sockopt(4)) { }
228 0 0 unless (${*$self;}{'httpsnb_reading'})
234 0 0 if (${*$self;}{'httpsnb_read_count'}++)
252 0 0 if ($@)
253 0 0 if $@ eq "Multi-read\n" or $Net::HTTPS::NB::HTTPS_ERROR == 38952272
268 0 0 if ($@ or not defined $n and $Net::HTTPS::NB::HTTPS_ERROR == 38952272)