Branch Coverage

blib/lib/IO/Stream/MatrixSSL.pm
Criterion Covered Total %
branch 41 68 60.2


line true false branch
37 0 14 if ($self->{'_closed'}) { }
7 7 elsif (not $self->{'_handshaked'}) { }
7 0 elsif (not $self->{'_want_close'}) { }
50 0 7 if $rc <= 0
53 7 0 if $rc == 0
54 0 0 if $rc == 1
55 0 0 if $rc == 5
56 0 0 if ($rc == 3)
65 0 7 if (defined $m->{'out_pos'}) { }
80 0 17 if ($e & 32 and $self->{'_want_close'})
85 26 31 unless ($self->{'_handshaked'})
88 6 0 unless $e or $err
89 29 22 if ($e & 4)
95 16 87 if $rc == 0
97 36 51 if $rc == 2
98 7 44 if $rc == 1
99 1 43 if ($rc == 5)
103 0 43 if ($rc == 6) { }
43 0 elsif ($rc == 4) { }
0 0 elsif ($rc == 7) { }
105 0 0 if ($level == 2)
110 0 0 if ($descr != 0)
132 0 29 if (@warnings)
140 5 2 if $rc == 0
141 0 2 if $rc == 1
142 2 0 if ($rc == 5)
146 0 0 if ($rc == 3)
153 5 24 if (length $self->{'out_buf'})
157 5 46 if ($e & 1)
160 5 46 if ($e & 16)
162 0 5 unless ($self->{'_handshaked'})
166 5 46 if ($e & 2)
175 5 41 unless ($self->{'_handshaked'})
178 3 2 if ($self->{'_want_write'})