Branch Coverage

blib/lib/RapidApp/Role/CatalystApplication.pm
Criterion Covered Total %
branch 27 92 29.3


line true false branch
35 0 114 $pfx eq '/' ? :
50 0 2 if $custom
53 2 0 $url ? :
128 11 71 if ($component->can('action_namespace'))
129 4 7 if $component->action_namespace($app) eq ''
146 4 0 unless $app->config->{'ra_inject_components'}
181 0 4 if $app->application_has_root_controller and not $app->config->{'RapidApp'}{'module_root_namespace'}
201 41 0 if (not $app->components->{$virtual})
202 0 41 if $app->debug
245 0 50 if (my($err) = @{$c->error;})
246 0 0 if (&blessed($err) and $err->isa('RapidApp::Responder')) { }
0 0 elsif (my $template = $c->config->{'RapidApp'}{'error_template'}) { }
277 0 0 $var eq 'error' && !&SQL::Abstract::is_plain_value($val) ? :
287 0 0 unless $status and $status =~ /^\d{3}$/
316 0 50 if (not defined $c->response->content_type)
341 0 0 if $c->debug
351 0 0 $c->action ? :
360 0 2 if $c->req->method eq 'GET' and not $c->is_ra_ajax_req and not $c->req->params->{'__no_hashnav_redirect'}
372 0 0 unless ref $path
374 0 0 unless (defined $base)
377 0 0 $ns ne '' ? :
383 0 0 if ($params and keys %$params > 0)
396 0 0 unless ref $warn
404 0 0 unless ref $warn eq 'HASH' and defined $warn->{'msg'}
449 50 0 unless ref $stats and keys %$stats > 0
461 0 0 unless my $total = shift()
465 0 0 unless ref $stats and keys %$stats > 0
538 0 8 unless $c->can('request') and $c->request
539 2 6 unless my $tp = $c->request->header('X-RapidApp-RequestContentType')
540 6 0 $tp eq 'JSON' ? :
548 0 0 ref $c ? :
556 0 4 if exists $tc_cfg->{'root_template_prefix'}
558 0 4 if exists $tc_cfg->{'root_template'}
583 0 12 ref $c ? :
588 6 6 if ($home and -d $home)
590 0 6 if ($root and -d $root)
592 0 0 if $tpl and -d $tpl
598 12 0 if ($share_dir and -d $share_dir)
600 12 0 if $tpl and -d $tpl
622 0 0 unless $TT->process($template, $vars, \$out)
651 0 0 unless ref $c
652 0 0 unless my $code = shift()
653 0 0 unless ref $code eq 'CODE'
656 0 0 if (&try(sub { $c->stash; } )) { }
691 0 0 ref $err ? :
694 0 0 unless &try(sub { $c->log->error($errStr); } )