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)
160 126 3019 unless ($$self{'ssl_started'})
162 0 126 if $self->_check_status == 0
166 0 3145 unless (defined $offset)
172 2819 326 if $len > 16384
181 313 2832 if ($wrote_len < 0) { }
189 0 2832 unless ($$self{'ssl_started'})
194 0 0 if (defined $$self{'on_connect'})
208 0 58 if (@_) { }
221 58 0 if (defined $$self{'socket'})
229 29 29 if (exists $$self{'client'})
242 58 0 if (defined $$self{'socket'})