Condition Coverage

blib/lib/Monitoring/Availability.pm
Criterion Covered Total %
condition 88 134 65.6


and 3 conditions

line !l l&&!r l&&r condition
193 18 0 0 $$self{'verbose'} and not defined $$self{'logger'}
349 0 32 0 defined $$service{'host'} and defined $$service{'service'}
367 13 7 0 scalar keys %{$$result{'services'};} == 0 and scalar keys %{$$result{'hosts'};} == 0
386 20 0 0 $$self{'report_options'}{'log_file'} and not $$self{'report_options'}{'log_string'}
20 0 0 $$self{'report_options'}{'log_file'} and not $$self{'report_options'}{'log_string'} and not $$self{'report_options'}{'log_dir'}
552 149 7 20 $last_time < $report_options_start and $$data{'time'} >= $report_options_start
559 2 0 8 defined $breakpoint and $last_time < $breakpoint
2 4 4 defined $breakpoint and $last_time < $breakpoint and $$data{'time'} >= $breakpoint
568 173 0 3 $$data{'time'} >= $report_options_end and $last_time < $report_options_end
773 117 0 58 exists $$data{'hard'} and not $report_options_includesoftstates
117 56 2 exists $$data{'hard'} and not $report_options_includesoftstates and $$data{'hard'} != 1
788 5 0 1 defined $last_known_state and $last_known_state >= 0
795 9 0 1 defined $last_known_state and $last_known_state >= 0
849 0 0 3 defined $last_known_state and $last_known_state >= 0
856 3 0 0 defined $last_known_state and $last_known_state >= 0
882 0 45 65 $report_options_calc_all == 0 and defined $$data{'host_name'}
45 63 2 $report_options_calc_all == 0 and defined $$data{'host_name'} and not defined $$self{'host_data'}{$$data{'host_name'}}
108 0 2 $report_options_calc_all == 0 and defined $$data{'host_name'} and not defined $$self{'host_data'}{$$data{'host_name'}} and not defined $$self{'service_data'}{$$data{'host_name'}}
888 0 45 63 $report_options_calc_all == 0 and $$data{'host_name'}
45 16 47 $report_options_calc_all == 0 and $$data{'host_name'} and $$data{'service_description'}
61 47 0 $report_options_calc_all == 0 and $$data{'host_name'} and $$data{'service_description'} and not defined $$self{'service_data'}{$$data{'host_name'}}{$$data{'service_description'}}
1049 38 0 86 $report_options_start < $$data{'time'} and $report_options_end >= $$data{'time'}
1055 81 3 2 defined $$self{'in_timeperiod'} and not $$self{'in_timeperiod'}
1115 13 0 39 $report_options_start < $$data{'time'} and $report_options_end >= $$data{'time'}
1121 37 1 1 defined $$self{'in_timeperiod'} and not $$self{'in_timeperiod'}
1465 6 1 2 $$self{'report_options'}{'initialassumedservicestate'} != -2 and scalar @{$$self{'report_options'}{'services'};} == 1
1491 8 0 1 $$self{'report_options'}{'initialassumedhoststate'} != -2 and scalar @{$$self{'report_options'}{'hosts'};} == 1
1501 1 0 0 defined $$self{'full_log_store'}[0] and $fake_start >= $$self{'full_log_store'}[0]{'log'}{'start'}

or 2 conditions

line l !l condition
299 1 19 $$self{'rpttimeperiod'} || ''

or 3 conditions

line l !l&&r !l&&!r condition
386 19 0 1 defined $$self{'report_options'}{'log_string'} or $$self{'report_options'}{'log_file'}
19 0 1 defined $$self{'report_options'}{'log_string'} or $$self{'report_options'}{'log_file'} or $$self{'report_options'}{'log_dir'}
781 10 0 2 $$data{'proc_start'} == 1 or $$data{'proc_start'} == 2
812 38 1 18 $$data{'proc_start'} == 1 or $$data{'proc_start'} == 2
901 39 6 2 $$data{'type'} eq 'CURRENT SERVICE STATE' or $$data{'type'} eq 'SERVICE ALERT'
45 0 2 $$data{'type'} eq 'CURRENT SERVICE STATE' or $$data{'type'} eq 'SERVICE ALERT' or $$data{'type'} eq 'INITIAL SERVICE STATE'
963 7 4 5 $$data{'type'} eq 'CURRENT HOST STATE' or $$data{'type'} eq 'HOST ALERT'
11 0 5 $$data{'type'} eq 'CURRENT HOST STATE' or $$data{'type'} eq 'HOST ALERT' or $$data{'type'} eq 'INITIAL HOST STATE'
1061 0 1 38 $$service_hist{'in_downtime'} || $$host_hist{'in_downtime'}
1066 0 0 3 $$service_hist{'in_downtime'} || $$host_hist{'in_downtime'}
1071 0 1 4 $$service_hist{'in_downtime'} || $$host_hist{'in_downtime'}
1076 0 0 3 $$service_hist{'in_downtime'} || $$host_hist{'in_downtime'}
1081 1 0 32 $$service_hist{'in_downtime'} || $$host_hist{'in_downtime'}
1399 18 0 0 $$options{'breakdown'} == 0 or $$options{'breakdown'} == 1
18 0 0 $$options{'breakdown'} == 0 or $$options{'breakdown'} == 1 or $$options{'breakdown'} == 2
0 0 0 $$options{'breakdown'} == 0 or $$options{'breakdown'} == 1 or $$options{'breakdown'} == 2 or $$options{'breakdown'} == 3