Condition Coverage

blib/lib/ClearPress/controller.pm
Criterion Covered Total %
condition 73 107 68.2


and 2 conditions

line l !l condition
457 0 15 $lang and scalar @{$lang;}

and 3 conditions

line !l l&&!r l&&r condition
119 106 15 0 $type ne 'view' and $type ne 'model'
158 81 5 5 $xhr and not $pi =~ m[(?:$accept_extensions)(?:/[^/]*?)?$]msx
172 37 35 19 $action eq 'read' and not $id
72 7 12 $action eq 'read' and not $id and not $aspect
176 56 13 22 $action eq 'create' and $id
343 43 40 4 not $id and $aspect =~ /^(?:delete|update|edit|read)/msx
349 40 40 3 $id and $aspect =~ /^(?:create|add|list)/msx
513 0 0 15 $charset && !exists $ENV{'REDIRECT_STATUS'}
522 0 0 6 $content_type =~ /text/msx and $charset =~ /utf-?8/imsx
673 0 62 90 ref $self and not $self->{'namespace'}

or 2 conditions

line l !l condition
80 91 0 $self ||= {}
144 91 0 $ENV{'REQUEST_METHOD'} || 'GET'
146 91 0 $ENV{'PATH_INFO'} || ''
147 1 90 $ENV{'HTTP_ACCEPT'} || ''
148 3 88 $ENV{'QUERY_STRING'} || ''
149 10 81 $ENV{'HTTP_X_REQUESTED_WITH'} || ''
167 88 3 $entity ||= ''
185 41 50 $aspect ||= ''
186 20 71 $aspect_extra ||= ''
191 66 25 $self->_process_request_extensions(\$pi, $aspect, $action) || ''
202 66 25 $aspect ||= ''
203 58 33 $id || '0'
210 1 1 $util->config->val('application', 'views') || ''
399 15 0 $util->config->val('application', 'name') || 'Application'
420 15 0 $config->val('application', 'name') || 'ClearPress Application'
436 15 0 $self->decorator($util || $self->util)->session || {}
481 15 0 'ClearPress::view'->new($params)->content_type || 'text/html'
675 90 0 $util->config->val('application', 'namespace') || $util->config->val('application', 'name') || 'ClearPress'

or 3 conditions

line l !l&&r !l&&!r condition
124 121 0 0 $util ||= $self->util
177 15 4 3 not $aspect or $aspect =~ /^update/msx
201 88 1 2 $entity ||= $util->config->val('application', 'default_view')
234 26 6 0 $aspect || $action
323 1 6 0 {'read', 'list'}->{$action} || $action_extended
370 10 25 0 $aspect ||= $action
385 1 0 0 $aspect ||= $action
564 0 1 0 not $code or $code == 200
623 0 0 1 $errstr || $self->errstr
673 90 0 62 ref $self and not $self->{'namespace'} or not ref $self
674 75 15 0 $util ||= $self->util
746 0 0 0 not $code or $code == 200
769 0 0 0 not $code or $code == 200