Condition Coverage

blib/lib/RapidApp/Role/CatalystApplication.pm
Criterion Covered Total %
condition 21 85 24.7


and 3 conditions

line !l l&&!r l&&r condition
181 4 0 0 $app->application_has_root_controller and not $app->config->{'RapidApp'}{'module_root_namespace'}
246 0 0 0 &blessed($err) and $err->isa('RapidApp::Responder')
277 0 0 0 $var eq 'error' && !&SQL::Abstract::is_plain_value($val)
287 0 0 0 $status and $status =~ /^\d{3}$/
360 0 2 0 $c->req->method eq 'GET' and not $c->is_ra_ajax_req
2 0 0 $c->req->method eq 'GET' and not $c->is_ra_ajax_req and not $c->req->params->{'__no_hashnav_redirect'}
383 0 0 0 $params and keys %$params > 0
404 0 0 0 ref $warn eq 'HASH' and defined $warn->{'msg'}
449 0 50 0 ref $stats and keys %$stats > 0
465 0 0 0 ref $stats and keys %$stats > 0
538 0 0 8 $c->can('request') and $c->request
588 0 6 6 $home and -d $home
590 0 6 0 $root and -d $root
592 0 0 0 $tpl and -d $tpl
598 0 0 12 $share_dir and -d $share_dir
600 0 0 12 $tpl and -d $tpl

or 2 conditions

line l !l condition
34 0 114 &try(sub { $c->req->env->{'SCRIPT_NAME'}; } ) || ''
41 0 2 $c->config->{'RapidApp'}{'default_favicon_url'} || '/assets/rapidapp/misc/static/images/rapidapp_icon_small.ico'
237 15 35 $c->req->header('X-RapidApp-RequestContentType') || $c->req->param('RequestContentType') || ''
323 0 165 $c->config->{'Model::RapidApp'}{'module_root_namespace'} || ''
339 0 0 $path ||= ''
448 50 0 $RapidApp::Util::debug_around_stats || (return)
462 0 0 shift() || 'Total Elapsed'
464 0 0 $RapidApp::Util::debug_around_stats || (return)
549 0 4 $cnf->{'RapidApp'} ||= {}
554 0 4 $cnf->{'Controller::RapidApp::Template'} || {}
568 0 4 $cnf->{'Model::RapidApp'} || {}
4 0 $cnf->{'RapidApp'} || {}
614 0 0 shift() || {}
657 0 0 $c->stash->{'on_finalize_success'} ||= []

or 3 conditions

line l !l&&r !l&&!r condition
286 0 0 0 &try(sub { $err->status_code; } ) || &try(sub { $err->{'status_code'}; } )
548 4 0 0 $cnf->{'name'} ||= ref $c ? ref $c : $c
616 0 0 0 $TT ||= 'Template'->new({'INCLUDE_PATH', $c->default_tt_include_path, 'ABSOLUTE', 1})