Condition Coverage

lib/Nagios/Object.pm
Criterion Covered Total %
condition 44 78 56.4


and 3 conditions

line !l l&&!r l&&r condition
463 23 0 573 $type eq 'Nagios::Object' and $args{'Type'}
500 18135 2 109 exists $args{$key} and defined $args{$key}
598 5070 0 0 $attribute eq 'register' and not defined $value
602 4890 0 180 blessed $value and UNIVERSAL::can($value, 'name')
614 0 3598 1472 exists $$self{$attribute} and defined $$self{$attribute}
628 8926 65 11012 exists $$self{'_use'} and blessed($$self{'_use'})
683 1230 2 0 ref $name and UNIVERSAL::can($name, 'name')
712 1769 0 95 defined $$self{'register'} and $$self{'register'} == 0
777 0 4 678 @$type > 1 and length $$type[0] == 1
852 5833 1 2 not $pre_link || $fast_mode and exists $$vf{$key}
860 4315 1521 0 ref $$vf{$key}[0] eq 'ARRAY' and $value =~ /^\+(.+)$/
864 4315 1234 287 ref $$vf{$key}[0] eq 'ARRAY' and $value =~ /,/
883 2 0 0 not defined $value and ($flags & NAGIOS_NO_INHERIT()) == NAGIOS_NO_INHERIT()
891 2 0 0 ref $value eq 'ARRAY' and $type ne 'TIMERANGE'
894 0 0 0 @$type == 1 and $$type[0] =~ /^Nagios::.*$/
932 0 0 0 $value != 0 and $value != 1
939 2 0 0 $type eq 'INTEGER' and $value =~ /[^\d]/
1046 4266 108 18 $pkg eq 'Nagios::ServiceGroup' and $method eq 'members'
1072 8989 0 11014 $template and $template->can($method)
1165 2 0 0 ref $item eq 'ARRAY' and @$item == 2
0 0 2 defined $item and length $item

or 3 conditions

line l !l&&r !l&&!r condition
530 0 0 16 not defined $text or ref $text
852 5833 0 3 $pre_link || $fast_mode
891 2 0 0 $type eq 'STRING' or $type eq 'INTEGER'
948 0 0 0 $$rng[0] =~ /[^\d]/ or $$rng[1] =~ /[^\d]/
1067 11625 82 20003 defined $value or $method eq 'use'