Branch Coverage

blib/lib/Plack/Handler/Stomp.pm
Criterion Covered Total %
branch 28 40 70.0


line true false branch
72 19 0 if ($exception)
73 0 19 unless (&blessed($exception))
77 1 18 if ($exception->isa('Plack::Handler::Stomp::Exceptions::AppError'))
80 1 17 if ($exception->isa('Plack::Handler::Stomp::Exceptions::UnknownFrame'))
83 16 1 if ($exception->isa('Plack::Handler::Stomp::Exceptions::OneShot'))
90 2 16 if defined $exception
100 0 18 unless ($frame and ref $frame)
107 16 0 if $self->one_shot
118 22 1 if ($method) { }
168 15 0 if (defined $body) { }
179 15 0 if (ref $res eq 'ARRAY') { }
0 0 elsif (ref $res eq 'CODE') { }
209 6 9 if ($reply_to)
233 6 0 unless (Plack::Util::status_with_no_entity_body($response->[0]))
241 6 1 if $k eq 'x-stomp-reply-address'
242 0 1 if $k eq 'x-reply-address'
243 0 1 unless $k =~ s/^x-stomp-//
279 11 5 if (defined $sub_id)
283 15 1 if ($path_info)
332 16 0 if ($frame->headers)