Branch Coverage

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


line true false branch
31 0 1 if ref $self->filter eq 'Regexp'
32 0 1 unless ref $self->filter eq 'CODE'
46 0 0 unless @events
65 1 0 unless $$env{'psgi.nonblocking'}
70 0 1 if ($$env{'PATH_INFO'} =~ m[^/_plackAutoRefresh(?:/(\d+)/(\d+))?])
75 0 0 if (defined $timestamp and $timestamp < $$self{'last_change'}) { }
82 0 0 if (my $old_connection = $$self{'condvars'}{$uid})
109 1 0 if ($ct =~ m[^(?:text/html|application/xhtml\+xml)])
112 1 1 unless defined $chunk
173 1 0 unless -r $script