Condition Coverage

blib/lib/File/Namaste.pm
Criterion Covered Total %
condition 18 39 46.1


and 3 conditions

line !l l&&!r l&&r condition
104 0 3 0 defined $num and defined $fvalue
159 2 0 0 $n =~ s/^\.0/0/ || $n eq '.' and -e $dir_type

or 2 conditions

line l !l condition
107 3 0 $dir ||= ''
143 5 0 $dir ||= ''
229 6 7 $where ||= 'e'
239 1 12 $side ||= ''
1 12 $offset ||= 0
1 12 $percent ||= ''

or 3 conditions

line l !l&&r !l&&!r condition
76 0 0 0 $num =~ /\D/ or $num < 0
0 0 0 $num =~ /\D/ or $num < 0 or $num > $last
115 0 0 3 $num =~ s/^\.0/0/ or $num eq '.'
120 0 0 0 $ret or $num eq '.'
159 0 0 2 $n =~ s/^\.0/0/ || $n eq '.'
232 4 9 0 $ellipsis ||= $where eq 'm' ? '...' : '..'
243 3 0 10 $slen <= $maxlen or $maxlen == 0