Condition Coverage

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


and 2 conditions

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

and 3 conditions

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

or 2 conditions

line l !l condition
135 0 0 $conf{'usage'} || '%c %o'
165 1 0 $type || $guess || '$'

or 3 conditions

line l !l&&r !l&&!r condition
133 0 0 0 $conf{'cmd'} || basename($0)
185 0 0 1 !defined($type) || $type eq '$'
0 0 1 !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 1 !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'} }