Condition Coverage

blib/lib/Plack/Middleware/SocketIO.pm
Criterion Covered Total %
condition 6 15 40.0


and 3 conditions

line !l l&&!r l&&r condition
30 0 0 0 defined $$env{'PATH_INFO'} and $$env{'PATH_INFO'} =~ m[^/$resource/]

or 2 conditions

line l !l condition
27 0 0 $self->resource || 'socket.io'
33 0 0 $instance->finalize($env, $self->handler) || [400, ['Content-Type', 'text/plain'], ['Bad request']]
48 0 2 $self->method || 'run'

or 3 conditions

line l !l&&r !l&&!r condition
45 1 1 1 $self->instance or $self->class
51 1 0 1 $self->instance || do { Plack::Util::load_class($self->class); $self->class->new }