Branch Coverage

blib/lib/Amon2/Lite.pm
Criterion Covered Total %
branch 29 30 96.6


line true false branch
36 1 11 if (delete $opts{'handle_static'})
46 1 3 if (my $content = $$vpath{$$env{'PATH_INFO'}} and $$env{'PATH_INFO'} =~ m[^/]) { }
1 2 elsif ($$env{'PATH_INFO'} =~ qr"^(?:/robots\.txt|/favicon\.ico)$") { }
1 1 elsif ($$env{'PATH_INFO'} =~ m[^/static/]) { }
60 2 10 if (my(@middlewares) = @{"${caller}::_MIDDLEWARES";})
67 11 1 unless ($opts{'no_x_content_type_options'})
73 11 1 unless ($opts{'no_x_frame_options'})
106 1 1 if (@_ == 3) { }
132 23 5 if (my $p = $router->match($c->request->env)) { }
135 4 1 if ($router->method_not_allowed) { }
173 1 5 if ($$stuff{$_})
178 1 2 if ($$stuff{$_})
186 1 3 if (my $config = $caller->config->{'Text::Xslate'})
189 2 2 if (%options)
198 0 14 if (-d 'File::Spec'->catdir($caller->base_dir, 'config')) { }