Branch Coverage

blib/lib/Plack/Middleware/AutoRefresh.pm
Criterion Covered Total %
branch 8 20 40.0


line true false branch
34 0 1 if ref $self->filter eq 'Regexp'
35 0 1 unless ref $self->filter eq 'CODE'
49 0 0 unless @events
70 1 0 unless $env->{'psgi.nonblocking'}
73 0 1 if ($env->{'PATH_INFO'} =~ m[^/_plackAutoRefresh(?:/(\d+)/(\d+))?])
78 0 0 if (defined $timestamp and $timestamp < $self->{'last_change'}) { }
85 0 0 if (my $old_connection = $self->{'condvars'}{$uid})
112 1 0 if ($ct =~ m[^(?:text/html|application/xhtml\+xml)])
115 1 1 unless defined $chunk
176 1 0 unless -r $script