Condition Coverage

blib/lib/RapidApp/Module.pm
Criterion Covered Total %
condition 23 84 27.3


and 3 conditions

line !l l&&!r l&&r condition
76 0 141 0 defined $self->base_query_string and $self->base_query_string ne ''
98 0 0 0 defined $params and ref $params eq 'HASH'
376 0 436 83 defined $self->c and $self->c->request_id != $self->_lastRequestApplied
392 0 0 0 not $topModule->has_module($parts[0]) and $parts[0] eq $self->app->module_root_namespace
433 216 0 452 defined $self->modules_obj->{$name} and ref $self->modules_obj->{$name} eq $class_name
835 0 0 0 &blessed($uri) and $uri->isa('URI')
902 0 0 23 $opt && ($self->has_module($opt) || $self->has_action($opt))
973 3 9 40 $opt and not $self->has_action($opt)
12 0 40 $opt and not $self->has_action($opt) and $self->_load_module($opt)
976 3 0 9 $opt and $self->has_action($opt)
986 3 0 0 defined $opt and not $self->accept_subargs
2 0 1 $self->auto_viewport and not $self->c->is_ra_ajax_req
988 0 0 0 $opt eq 'favicon.ico' and not $c->is_ra_ajax_req
1033 0 0 0 $rdr_vp and $rdr_vp eq 'printview'
0 0 0 $rdr_vp and $rdr_vp eq 'printview' and $self->can('printview')
0 0 0 $rdr_vp and $rdr_vp eq 'navable'
0 0 0 $rdr_vp and $rdr_vp eq 'navable' and $self->can('navable')
0 0 0 $rdr_vp and $self->can('viewport')
1121 11 0 0 defined $self->c->response->body and length $self->c->response->body
1139 0 0 11 $self->render_as_json and ref $data
0 0 11 $self->render_as_json and ref $data and not defined $self->no_json_ref_types->{ref $data}

or 2 conditions

line l !l condition
113 0 1 $self->c->stash->{'current_view'} ||= 'RapidApp::Viewport'
117 0 0 $self->c->stash->{'config_params'} //= {%{$self->c->req->params;}}
123 0 0 $self->c->stash->{'current_view'} ||= 'RapidApp::Printview'

or 3 conditions

line l !l&&r !l&&!r condition
114 1 0 0 $self->c->stash->{'title'} ||= $self->module_name
115 0 0 1 $self->c->stash->{'config_url'} ||= $self->base_url
816 0 0 0 $self->c->stash->{'current_view_instance'} || $c->view($c->stash->{'current_view'})
928 0 0 0 $attr->is_lazy or $attr->has_clearer
1133 0 0 11 defined $self->c->stash->{'current_view'} or defined $self->c->stash->{'current_view_instance'}