Condition Coverage

blib/lib/RapidApp/Template/Controller.pm
Criterion Covered Total %
condition 4 69 5.8


and 3 conditions

line !l l&&!r l&&r condition
213 0 0 0 exists $c->req->params->{'iframe'} and $c->req->params->{'iframe'} eq 'request'
251 0 0 0 $external && $self->_template_exists($c, $template)
266 0 4 0 $self->default_template_extension and not $template =~ /\./
307 0 0 0 $c->redispatch_public_path($c->mount_url, @args) and $c->detach
0 0 0 $self->_validate_args_template_viewable(@pre_args) and $args[0] eq 'simplecas' || $args[0] eq 'assets' || $args[0] eq 'rapidapp'
489 0 0 0 exists $c->req->params->{'iframe'} and $c->req->params->{'iframe'} eq 'request'
506 0 0 0 $content_type and not $content_type =~ m[^text/html]
659 0 0 0 $self->is_editable_request($c) && $self->Access->template_writable($template)

or 2 conditions

line l !l condition
375 0 0 $c->res->status || 200
464 0 0 $cnf->{'plugins'} ||= []
510 0 0 $c->favicon_head_tag || ''
539 0 0 $content_type ||= 'text/html; charset=utf-8'
641 0 0 $content_type ||= 'text/plain; charset=utf-8'
689 1 0 $vars ||= {}

or 3 conditions

line l !l&&r !l&&!r condition
77 0 0 0 $self->edit_alias_path || $self->read_alias_path
213 0 0 0 $c->req->header('X-RapidApp-RequestContentType') or exists $c->req->params->{'iframe'} and $c->req->params->{'iframe'} eq 'request'
222 0 0 0 $self->auto_editable || $c->req->params->{'editable'} || $c->req->params->{'edit'} || $c->stash->{'editable'}
231 0 0 0 $c->req->params->{'iframe'} || $c->stash->{'iframe'}
244 0 0 0 $template =~ m[^rapidapp/public/] || $self->Access->template_external_tpl($template)
297 0 0 0 $args[0] eq 'tpl' or $args[0] eq 'tple'
307 0 0 0 $args[0] eq 'simplecas' || $args[0] eq 'assets' || $args[0] eq 'rapidapp'
394 0 0 0 $external or $ra_client
399 0 0 0 $external || $self->is_iframe_request($c)
690 1 0 0 $c ||= 'RapidApp'->active_request_context
695 1 0 0 $c || $self->_app