Condition Coverage

blib/lib/App/Getconf/Node.pm
Criterion Covered Total %
condition 31 43 72.0


and 3 conditions

line !l l&&!r l&&r condition
89 335 30 0 $$self{'type'} eq 'bool' and $$self{'storage'} ne 'scalar'
101 329 36 0 $$self{'check'} and not $check_type eq 'CODE' || $check_type =~ /(^|::)Regexp$/ || $check_type eq 'ARRAY'
191 98 13 1 @_ == 1 and $self->requires_arg
195 13 98 0 @_ > 1 and not $self->uses_arg
228 74 3 1 $self->type eq 'bool' and @_ == 1
75 0 2 @_ == 1 and exists $$self{'default'}
354 0 2 1 defined $value and $value =~ /^(1|true|yes)$/i
0 0 2 defined $value and $value =~ /^(0|false|no)$/i
397 4 0 0 not defined $value and grep {not defined $_;} @{$$self{'check'};}
400 0 2 2 defined $value and grep {$_ eq $value;} @{$$self{'check'};}

or 2 conditions

line l !l condition
67 322 43 $opts{'type'} || 'string'
322 43 $opts{'storage'} || 'scalar'

or 3 conditions

line l !l&&r !l&&!r condition
101 24 12 0 $check_type eq 'CODE' || $check_type =~ /(^|::)Regexp$/ || $check_type eq 'ARRAY'
127 77 3 0 $$self{'type'} eq 'int' || $$self{'type'} eq 'float' || $$self{'type'} eq 'string' || $$self{'type'} eq 'bool'
140 23 4 20 $$self{'type'} eq 'flag' || $$self{'type'} eq 'bool' || exists $$self{'default'}