Condition Coverage

lib/Nagios/Object/Config.pm
Criterion Covered Total %
condition 51 86 59.3


and 3 conditions

line !l l&&!r l&&r condition
90 0 10 9 not $fast_mode and $args{'version'}
194 0 8087 2 $line and $line =~ /\\$/
213 0 0 0 $_ =~ /\.cfg$/ and -f $_
272 0 4085 0 not $fast_mode and $1
3429 0 656 not $fast_mode and $1 and $current->can('set_comment')
280 4080 0 0 $key eq 'notes' and defined $comment
335 5 0 871 $type and $type =~ /^Nagios::/
346 0 49 5 $n and $n eq $name
365 0 0 1506 $type and $type =~ /^Nagios::(.*)/
367 0 152 1354 exists $$self{$index_type} and exists $$self{$index_type}{$name}
403 0 22 20 $objname and $objname =~ /$re/
471 150 0 118 $key =~ /_list$/ and ref $$self{$key} eq 'ARRAY'
488 0 0 0 not $what and $what != 0
492 0 0 0 defined $type and $type =~ /^Nagios::(.*)$/
503 0 0 0 $obj->has_attribute($attribute) and $obj->$attribute eq $what
541 0 297 244 exists $$object{'use'} and defined $$object{'use'}
297 0 244 exists $$object{'use'} and defined $$object{'use'} and not exists $$object{'_use'}
587 4 635 565 not ref $attr_type and $object->attribute_is_list($attribute)
617 139 8 0 scalar @refl > 1 and $object->can('host_name') || $object->can('hostgroup_name')
692 84 58 10 $members && grep({$object eq $_;} @$members)
693 8 3 1 defined $members and ref $members eq ''
730 45 516 4 @to_find == 1 and $to_find[0] eq '*'
746 609 0 13 ($$self{'_regexp_matching_enabled'} || $$self{'_true_regexp_matching_enabled'}) && ($$self{'_true_regexp_matching_enabled'} || $item =~ /[\*\?]/)

or 2 conditions

line l !l condition
180 5229 1426 $line || ' '

or 3 conditions

line l !l&&r !l&&!r condition
189 0 0 3 $append =~ / $/ or $line =~ /^ /
300 59 491 3534 $key eq 'name' or $key eq $Nagios::Object::Config::nagios_setup{$current->setup_key}{'name'}[0]
577 503 0 12870 $attribute eq 'use' or $attribute eq 'register'
584 1200 4 5274 $attr_type =~ /^Nagios::.*$/ or ref $attr_type eq 'ARRAY'
617 8 0 0 $object->can('host_name') || $object->can('hostgroup_name')