Branch Coverage

blib/lib/Apache/Voodoo/Engine.pm
Criterion Covered Total %
branch 0 84 0.0


line true false branch
31 0 0 if (ref $i_am_a_singleton)
47 0 0 if (blessed($_[0]) and $_[0]->can('rethrow')) { }
65 0 0 defined $$self{'apps'}{$app_id} ? :
76 0 0 $self->_app->config->{'devel_mode'} ? :
91 0 0 unless (defined $id)
98 0 0 unless ($self->valid_app($id))
104 0 0 if ($self->_app->{'dynamic_loading'})
108 0 0 if ($self->_app->{'DEAD'})
148 0 0 if $db
160 0 0 unless (ref $params)
173 0 0 if (defined $debug)
178 0 0 if (defined $self->_app and defined $$self{'session_handler'})
179 0 0 if ($$self{'p'}{'uri'} =~ m[/?logout(_[^/]+)?$]) { }
201 0 0 if (defined $debug)
216 0 0 if (not defined $session_id or $session->id ne $session_id) { }
0 0 elsif ($session->has_expired($$conf{'session_timeout'})) { }
244 0 0 unless $uri =~ m[^/]
247 0 0 if $uri eq '/login'
249 0 0 if (not defined $$session{'history'} or $$session{'history'}[0]{'uri'} ne $uri) { }
260 0 0 if (scalar @{$$session{'history'};} > 30)
274 0 0 unless ($self->valid_app($app_id))
323 0 0 if (defined $$app{'controllers'}{$$c[0]} and $$app{'controllers'}{$$c[0]}->can($$c[1]))
335 0 0 if (my $e = 'Exception::Class'->caught)
336 0 0 if (ref($e) =~ /(AccessDenied|Redirect|DisplayError)$/) { }
0 0 elsif (ref $e) { }
348 0 0 if (not defined $template_params && ref $return) { }
0 0 elsif (ref $return eq 'HASH' and ref $template_params eq 'HASH') { }
0 0 elsif (ref $return eq 'ARRAY' and ref $template_params eq 'ARRAY') { }
372 0 0 if $$self{'p'}{'_stop_chain_'}
384 0 0 if (defined $$self{'p'}{'_view_'} and defined $self->_app->{'views'}{$$self{'p'}{'_view_'}}) { }
0 0 elsif (defined $$self{'p'}{'template_conf'}{'default_view'} and defined $self->_app->{'views'}{$$self{'p'}{'template_conf'}{'default_view'}}) { }
400 0 0 if (blessed $content and $content->can('rethrow')) { }
429 0 0 unless (opendir DIR, $install_path)
435 0 0 if defined $app and $id ne $app
437 0 0 unless $id =~ /^[a-z]\w*$/i
439 0 0 unless -f $fp
440 0 0 unless -r $fp
452 0 0 if $dbh
460 0 0 if ($dbh)
469 0 0 if ($$app{'errors'})
471 0 0 if ($$app{'halt_on_errors'}) { }
495 0 0 if ($sr ne '/' and $uri =~ m[^/]o) { }