Condition Coverage

lib/BATsh.pm
Criterion Covered Total %
condition 14 29 48.2


and 3 conditions

line !l l&&!r l&&r condition
19 5 0 0 $] < "5.006" and not defined &warnings::import
119 84 1 58 $token =~ m[\A[A-Z0-9_\-\\/\.:\@%]+\z] and $token =~ /[A-Z]/
185 121 2 1 $cur ne "" and $s =~ /\A(?:RET|RETURN)\s*\z/i
121 2 0 $cur ne "" and $s =~ /\A:([A-Za-z_][A-Za-z0-9_]*)\s*\z/
409 0 0 0 $depth == 0 and $line =~ /\A\s*\z/
412 0 0 0 $depth == 0 and $cur_mode eq ""

or 2 conditions

line l !l condition
74 0 0 $args{'verbose'} || 0

or 3 conditions

line l !l&&r !l&&!r condition
165 15 0 68 exists $_SH_OPEN{$l} or $first eq "{"
166 15 0 53 exists $_SH_CLOSE{$l} or $first eq "}"
355 0 0 123 $mode eq "EMPTY" or $mode eq "COMMENT"