Branch Coverage

blib/lib/Catalyst/Plugin/Static/Simple.pm
Criterion Covered Total %
branch 41 64 64.1


line true false branch
25 4 8 $dir =~ m[^qr/]msx ? :
26 0 12 if ($@)
29 3 9 if ($path =~ /$re/)
30 2 1 if ($c->_locate_static_file($path)) { }
31 0 2 if $$config{'debug'}
34 0 1 if $$config{'debug'}
42 16 1 if ($path =~ /.*\.(\S{1,})$/msx)
53 1 16 if $c->res->status != 200
55 10 6 if ($c->_static_file) { }
56 10 0 if ($c->config->{'static'}{'no_logs'} and $c->log->can('abort'))
70 0 17 if ($c->config->{'static'}{'debug'} and scalar @{$c->_debug_msg;})
74 0 17 if ($c->res->status =~ /^(1\d\d|[23]04)$/msx)
87 0 7 if ('Catalyst'->VERSION le '5.33')
99 7 0 unless defined $$config{'no_logs'}
127 2 25 if (ref $dir eq 'CODE') { }
129 0 2 if ($@) { }
137 16 9 if (-d $dir and -f $dir . '/' . $path)
142 3 3 if ($path =~ m[^$ignore(/|\\)])
143 0 3 if $$config{'debug'}
151 2 59 if ($path =~ /.*\.$ignore_ext$/imsx)
152 0 2 if $$config{'debug'}
158 0 11 if $$config{'debug'}
179 0 10 if ('Catalyst'->VERSION le '5.33') { }
187 10 0 if (defined $fh) { }
206 10 0 if ($full_path =~ /.*\.(\S{1,})$/msx) { }
210 8 2 if ($type) { }
211 0 8 if $$config{'debug'}
212 6 2 ref $type ? :
215 0 2 if $$config{'debug'}
221 0 0 if $$config{'debug'}
230 0 0 if (not defined $c->_static_debug_message)
234 0 0 if ($msg)