Condition Coverage

lib/App/Context.pm
Criterion Covered Total %
condition 80 326 24.5


and 3 conditions

line !l l&&!r l&&r condition
224 6 0 0 defined $debug and $debug ne ''
281 6 0 0 $includes and ref $includes eq 'ARRAY'
314 0 0 0 not $matches and $options{'debug_conf'}
321 6 0 0 defined $options{'debug_conf'} and $options{'debug_conf'} >= 2
368 0 0 0 $var eq 'app' and $cond_value eq '' || $cond_value eq 'ALL'
534 26 0 0 $App::DEBUG and $self->dbg(3)
566 12 5 9 $service && ref $service ne 'HASH'
576 2 7 0 not $$self{'conf_included'}{$conf_file} and -r $conf_file
588 9 9 8 not $service_initialized and $service_conf
18 8 0 not $service_initialized and $service_conf and $$service_conf{'include'}
613 9 9 8 not $service_initialized and $service_conf
634 9 9 8 not $service_initialized and $service_conf
636 8 0 0 $alias and $alias ne $name
0 8 0 $type ne 'Authorization' and $$service_conf{'clone'} || $$service_conf{'auth_clone'}
664 17 0 0 $App::DEBUG and $self->dbg(6)
745 2 0 0 $override and $$service{$attrib} ne $$args{$attrib}
750 4 0 0 $App::DEBUG and $self->dbg(6)
759 17 0 0 $App::DEBUG and $self->dbg(3)
762 4 13 0 not $temporary and defined $$service{'default'}
784 16 0 0 $App::DEBUG and $self->dbg(3)
794 25 0 0 $App::DEBUG and $self->dbg(3)
956 0 0 0 $App::DEBUG and $self->dbg(2)
987 4 0 0 $App::DEBUG and $self->dbg(2)
1100 0 0 0 $auth_value_list and ref $auth_value_list eq 'ARRAY'
1175 5 0 0 !defined($value) || $value eq '' and defined $default
1182 5 0 0 $App::DEBUG and $self->dbg(3)
1188 0 0 0 not defined $value and defined $default
1199 0 0 0 $App::DEBUG and $self->dbg(3)
1212 0 0 0 $App::DEBUG and $self->dbg(3)
1273 3 0 0 $App::DEBUG and $self->dbg(3)
1392 0 0 0 $App::DEBUG and $self->dbg(3)
1466 0 0 0 $App::DEBUG and $self->dbg(1)
1655 0 0 4 $#_ > -1 and ref $_[0] eq 'HASH'
1717 0 0 0 defined $overwrite and $overwrite
0 0 0 not defined $overwrite and $$self{'options'}{'log_overwrite'}
1860 6 0 0 $App::DEBUG and $self->dbg(1)
2066 0 0 0 defined $level and $App::DEBUG < $level
2072 0 0 0 defined $subroutine and $subroutine eq '(eval)'
2270 0 0 0 $show_current_session_object and $type
0 0 0 $show_current_session_object and $type and $name
2321 0 0 0 not $service->isa('App::Widget') and $method
0 0 0 not $service->isa('App::Widget') and $method and $service->can($method)
2463 0 0 0 $unschedule and $$event{'tag'}
2501 0 0 0 $$event{'time'} and $$event{'interval'}
2532 3 1 0 not $service_type and $name
2653 0 0 0 not $port and $host =~ /^([^:]+):([0-9]+)$/
2680 0 0 0 $await_return_value and not $server_close
2779 0 0 0 $App::DEBUG and $self->dbg(1)
2783 0 0 0 defined $repcache and ref $repcache eq 'HASH'
2826 1 0 0 $App::DEBUG and $self->dbg(1)
2830 1 0 0 defined $repcache and ref $repcache eq 'HASH'
2834 0 0 0 $App::DEBUG and $self->dbg(1)
2927 0 0 0 $events and $#$events > -1
2931 0 0 0 $$event[3] and $#{$$event[3];} > -1
3160 0 0 0 $profile_state and $profile_stats

or 2 conditions

line l !l condition
574 0 9 $$options{'conf_type'} || 'pl'
1656 4 0 $$msg_options{'level'} || 1
1757 0 0 $$self{'user'} || 'guest'
1793 0 0 $$self{'options'} || {}
2920 0 0 $$options{'app'} || 'app'
2923 0 0 $$options{'host'} || 'localhost'
3017 0 0 $end_cd ||= 'F'
3025 0 0 $$profile_state{'content_length'} || 0
3029 0 0 $$profile_stats{'main'}{'cumul_time'} || 0
3030 0 0 $$profile_stats{'event'}{'cumul_time'} || 0
3031 0 0 $$profile_stats{'db'}{'cumul_time'} || 0
3032 0 0 $$profile_stats{'file'}{'cumul_time'} || 0
3033 0 0 $$profile_stats{'net'}{'cumul_time'} || 0
3038 0 0 $$profile_stats{$run_aux1_label}{'cumul_time'} || 0
3039 0 0 $$profile_stats{$run_aux2_label}{'cumul_time'} || 0
3040 0 0 $$profile_stats{'xfer'}{'cumul_time'} || 0
3041 0 0 $$profile_stats{'net'}{'count'} || 0
3042 0 0 $$profile_stats{'db'}{'count'} || 0
3043 0 0 $$profile_stats{'db'}{'nrows_read'} || 0
3044 0 0 $$profile_stats{'db'}{'nrows_write'} || 0
3048 0 0 $$pinfo{'cutime'} + $$pinfo{'cstime'} || 0
3221 0 0 $$self{'profile_stats'} || {}

or 3 conditions

line l !l&&r !l&&!r condition
193 0 6 0 ref $this || $this
368 0 0 0 $cond_value eq '' || $cond_value eq 'ALL'
557 1 0 25 not defined $name or $name eq ''
565 2 2 22 $name eq 'temporary' || $$args{'temporary'}
572 9 0 17 $service_initialized or $service_conf
8 0 9 $service_initialized or $service_conf or $name =~ /-/
619 0 0 0 not $deprecated_action or $deprecated_action eq 'none'
636 0 0 8 $$service_conf{'clone'} || $$service_conf{'auth_clone'}
653 4 8 14 $temporary or not defined $service
12 5 9 $temporary or not defined $service or ref $service eq 'HASH'
739 17 0 9 $new_service or $override
745 2 0 2 not defined $$service{$attrib} or $override and $$service{$attrib} ne $$args{$attrib}
775 7 0 10 not defined $class or $class eq ''
861 0 0 4 $#_ > -1 or not $name
0 4 0 $#_ > -1 or not $name or $self->service_exists('Serializer', $name)
937 0 0 0 $$self{'session'}{'cache'}{'SessionObject'}{$session_object_name}{'class'} || $$self{'session'}{'store'}{'SessionObject'}{$session_object_name}{'class'} || $$self{'conf'}{'SessionObject'}{$session_object_name}{'class'}
944 0 0 0 $$self{'session'}{'cache'}{'SessionObject'}{$session_object_name}{'type'} || $$self{'session'}{'store'}{'SessionObject'}{$session_object_name}{'type'} || $$self{'conf'}{'SessionObject'}{$session_object_name}{'type'}
968 0 4 0 $$self{'session'}{'cache'}{$service_type}{$service_name}{'class'} || $$self{'session'}{'store'}{$service_type}{$service_name}{'class'} || $$self{'conf'}{$service_type}{$service_name}{'class'}
975 0 0 0 $$self{'session'}{'cache'}{$service_type}{$service_name}{'type'} || $$self{'session'}{'store'}{$service_type}{$service_name}{'type'} || $$self{'conf'}{$service_type}{$service_name}{'type'}
1154 4 0 1 not defined $var or $var eq ''
1171 0 1 4 not defined $cached_service or ref $cached_service eq 'HASH'
1175 0 0 5 !defined($value) || $value eq ''
1193 0 0 0 not defined $cached_service or ref $cached_service eq 'HASH'
1276 3 0 0 not defined $var or $var eq ''
1395 0 0 0 not defined $var or $var eq ''
1659 0 0 4 not defined $log_level or $msg_level <= $log_level
1717 0 0 0 defined $overwrite and $overwrite or not defined $overwrite and $$self{'options'}{'log_overwrite'}
1853 1 0 6 not defined $session_id or $session_id eq ''
1857 1 5 0 $$options{'session_class'} || $self->_default_session_class
1890 0 6 0 not defined $session_id or $session_id ne ''
1905 0 0 0 not defined $session_id or $session_id ne ''
2445 0 0 0 $event{'tag'} or $event{'method'}
2504 0 0 0 $time_of_next_event == 0 or $$event{'time'} < $time_of_next_event
2515 0 0 0 $time_of_next_event == 0 or $$event{'time'} < $time_of_next_event
2674 0 0 0 $await_return_value or $server_close
2676 0 0 0 $await_return_value or $server_close
2936 0 0 0 $$profile_state{'last_timeofday'}[0] || time
3027 0 0 0 $$profile_state{'last_timeofday'}[0] || time
3146 0 0 0 not $replace or $#$key_stack == -1