Branch Coverage

blib/lib/Net/SPOCP/Protocol.pm
Criterion Covered Total %
branch 21 60 35.0


line true false branch
24 0 1 if ref $$self{'_sock'}
29 0 1 unless $$self{'_sock'} and $$self{'_sock'}->connected
36 1 0 if $$self{'_sock'} and $$self{'_sock'}->connected
45 0 1 if $$self{'_tls'}
48 0 1 if ($@)
56 0 0 if ($res->code == 205)
62 0 0 if ($res->code != 205)
74 1 0 unless (UNIVERSAL::isa('Net::SPOCP::SExpr', $_[0]))
97 0 0 unless $callbacks
108 0 0 if $conn->code < 0
122 0 0 if $raw_data
123 0 0 unless $data
127 0 0 if ($res->code == 200) { }
159 0 2 unless $$self{'_sock'} and $$self{'_sock'}->connected
162 0 2 if ($$self{'sasl'}) { }
179 0 2 unless $$self{'_sock'} and $$self{'_sock'}->connected
184 2 0 if (not $$self{'rest_buf'}) { }
191 0 2 if $nread == 0
193 2 0 if $maxread - $nread != 0
195 0 2 unless defined $nread
197 0 2 if ($$self{'sasl'})
208 2 0 if $1
209 0 2 unless $len
211 2 0 if $2
212 0 2 unless $buf
299 0 0 if $_[0]{'mech'}
364 0 0 if $code != 201 and $code != 200 and $code != 301
421 0 2 unless $str =~ s/^3:([0-9]{3})//o
426 0 2 unless $str =~ s/^([0-9]+):(.*)//o
454 0 1 unless exists $CODE{$code}