Branch Coverage

blib/lib/POE/Component/SSLify/ServerHandle.pm
Criterion Covered Total %
branch 33 50 66.0


line true false branch
23 0 29 unless my $ssl = &Net::SSLeay::new($ctx)
33 29 0 if my $res = &Net::SSLeay::accept($ssl)
65 129 40 if (exists $$self{'client'}) { }
71 113 56 if ($$self{'status'} <= 0) { }
56 0 elsif ($$self{'status'} == 1) { }
78 111 2 if ($errval == ERROR_WANT_READ() or $errval == ERROR_WANT_WRITE()) { }
83 2 0 if (defined $$self{'on_connect'})
95 4 52 if (defined $$self{'on_connect'})
113 43 2867 unless ($$self{'ssl_started'})
114 2 41 if $self->_check_status == 0
118 2908 0 unless (defined $$offset)
122 2860 48 if (defined $$buf) { }
134 0 0 unless defined(my $read = &Net::SSLeay::read($$self{'ssl'}, $$len))
142 0 0 if ($$offset > $buf_len)
159 126 2987 unless ($$self{'ssl_started'})
161 0 126 if $self->_check_status == 0
165 0 3113 unless (defined $offset)
171 2819 294 if $len > 16384
179 281 2832 if ($wrote_len < 0) { }
187 0 2832 unless ($$self{'ssl_started'})
192 0 0 if (defined $$self{'on_connect'})
206 0 58 if (@_) { }
219 58 0 if (defined $$self{'socket'})
227 29 29 if (exists $$self{'client'})
240 58 0 if (defined $$self{'socket'})