Branch Coverage

blib/lib/POE/Filter/Stomp.pm
Criterion Covered Total %
branch 23 36 63.8


line true false branch
68 0 17 unless ref $buffers
81 31 0 if $frame
111 2 2 if ($$headers{'bytes_message'})
122 0 10 unless $headers
149 64 31 if ($$self{'buffer'} =~ s/^(.+?)$eol//)
168 0 31 unless $$self{'buffer'} =~ /$eol/
172 31 0 unless ($$self{'command'})
174 31 0 if (my $command = $self->_read_line) { }
185 31 0 unless ($$self{'headers'})
190 2 29 if ($clength == -1)
200 0 31 if $clength == -1
202 31 0 if ($clength <= $length) { }
208 33 0 if ($line =~ /^([\w\-~]+)\s*:\s*(.*)/)
231 8 23 if ($$self{'headers'}{'content-length'}) { }
236 8 0 if ($clength <= $length) { }
247 0 23 if $clength == -1
249 10 13 if ($clength == 0) { }
268 31 0 if ($$self{'command'} and $$self{'headers'} and $$self{'body'})