Condition Coverage

blib/lib/Getopt/Lazy.pm
Criterion Covered Total %
condition 8 30 26.6


and 2 conditions

line l !l condition
183 0 2 $type eq '&' and do { my $code = shift @def; $opt{$spec} = $code }

and 3 conditions

line !l l&&!r l&&r condition
183 2 0 0 !defined($type) || $type eq '$' and do { $usage{$item} .= " (default: $def[0])" if $def[0]; ${"$var";} = shift @def; $opt{$spec} = *{"$var";}{'SCALAR'} }
2 0 0 $type eq '@' and do { $usage{$item} .= ' (default: ' . join(',', @def) . ')' if @def > 0; @{"$var";} = @def; $opt{$spec} = *{"$var";}{'ARRAY'} }
2 0 0 $type eq '%' and do { (%{"$var";}) = @def; $opt{$spec} = *{"$var";}{'HASH'} }
210 0 0 0 show_help() and exit

or 2 conditions

line l !l condition
133 0 0 $conf{'usage'} || '%c %o'
163 2 0 $type || $guess || '$'

or 3 conditions

line l !l&&r !l&&!r condition
131 0 0 0 $conf{'cmd'} || basename($0)
183 0 0 2 !defined($type) || $type eq '$'
0 0 2 !defined($type) || $type eq '$' and do { $usage{$item} .= " (default: $def[0])" if $def[0]; ${"$var";} = shift @def; $opt{$spec} = *{"$var";}{'SCALAR'} } or $type eq '@' and do { $usage{$item} .= ' (default: ' . join(',', @def) . ')' if @def > 0; @{"$var";} = @def; $opt{$spec} = *{"$var";}{'ARRAY'} }
0 0 2 !defined($type) || $type eq '$' and do { $usage{$item} .= " (default: $def[0])" if $def[0]; ${"$var";} = shift @def; $opt{$spec} = *{"$var";}{'SCALAR'} } or $type eq '@' and do { $usage{$item} .= ' (default: ' . join(',', @def) . ')' if @def > 0; @{"$var";} = @def; $opt{$spec} = *{"$var";}{'ARRAY'} } or $type eq '%' and do { (%{"$var";}) = @def; $opt{$spec} = *{"$var";}{'HASH'} }