Condition Coverage

lib/BATsh/SH.pm
Criterion Covered Total %
condition 25 79 31.6


and 3 conditions

line !l l&&!r l&&r condition
30 5 0 0 $] < "5.006" and not defined &warnings::import
142 0 0 68 defined $cmd and $cmd ne ""
196 1 0 0 defined $v && $v ne ''
238 0 0 8 defined $v && $v =~ /\A-?\d+\z/
493 0 0 0 _eval_test($1) && _eval_test($2)
558 0 0 0 length $expr > 0 && $expr ne '0'
654 6 0 1 not $executed and defined $else_body
688 2 0 0 $lc_f eq "do" and $depth == 1
734 2 0 0 $lc_f eq "do" and $depth == 1
743 6 3 1 $is_until and $cond_true

or 2 conditions

line l !l condition
374 0 0 $ENV{'HOME'} || 'BATsh::Env'->get('HOME') || '.'
847 0 0 $rc >> 8 || 1

or 3 conditions

line l !l&&r !l&&!r condition
81 0 0 80 $_BREAK or $_RETURN
106 1 1 69 $first eq "while" or $first eq "until"
168 0 16 0 $lc_cmd eq "test" or $cmd eq "["
169 0 0 0 $lc_cmd eq "source" or $cmd eq "."
201 0 0 0 not defined $v or $v eq ""
373 0 0 0 $rest eq "" or $rest eq "~"
496 0 0 0 _eval_test($1) || _eval_test($2)
514 1 0 0 !defined($s) || $s == 0
524 0 0 0 $op eq "=" or $op eq "=="
686 0 0 4 $lc_f eq "for" or $lc_f eq "while"
0 0 4 $lc_f eq "for" or $lc_f eq "while" or $lc_f eq "until"
698 0 0 6 $_BREAK or defined $_EXIT_CODE
732 0 0 4 $lc_f eq "for" or $lc_f eq "while"
0 0 4 $lc_f eq "for" or $lc_f eq "while" or $lc_f eq "until"
744 3 5 1 $is_until or $cond_true