Condition Coverage

blib/lib/Psh/Parser.pm
Criterion Covered Total %
condition 0 117 0.0


and 3 conditions

line !l l&&!r l&&r condition
95 0 0 0 not $keep and defined $prefix
115 0 0 0 not $keep and $quote ne q[']
0 0 0 not $keep and $quote ne q['] and $quote ne 'q('
129 0 0 0 not $keep and length $line
243 0 0 0 substr($text, 0, 1) eq q['] and substr($text, -1, 1) eq q[']
0 0 0 substr($text, 0, 1) eq '"' and substr($text, -1, 1) eq '"'
273 0 0 0 substr($text, 0, 1) eq '(' and substr($text, -1, 1) eq ')'
0 0 0 substr($text, 0, 1) eq '{' and substr($text, -1, 1) eq '}'
295 0 0 0 @tmp == 2 and not $tmp[0]
549 0 0 0 @$tokens > 0 and $$tokens[0][0] == 2
555 0 0 0 @$tokens > 0 and $$tokens[0][0] == 4
568 0 0 0 @$tokens > 0 and $$tokens[0][0] == 1 || $$tokens[0][0] == 3
573 0 0 0 $firstwords and $$token[1] eq 'noglob' || $$token[1] eq 'noexpand' || $$token[1] eq 'noalias'
590 0 0 0 %Psh::Support::Alias::aliases and not $$opt{'noalias'}
0 0 0 %Psh::Support::Alias::aliases and not $$opt{'noalias'} and $Psh::Support::Alias::aliases{$words[0]}
0 0 0 %Psh::Support::Alias::aliases and not $$opt{'noalias'} and $Psh::Support::Alias::aliases{$words[0]} and not $$alias_disabled{$words[0]}
637 0 0 0 defined $word and $word
639 0 0 0 $word =~ /[a-zA-Z]/ and $word =~ m[^(\\.|[$.:a-zA-Z0-9/.])*$]

or 3 conditions

line l !l&&r !l&&!r condition
100 0 0 0 @pieces > 1 or $pieces[0]
101 0 0 0 length $pieces[$#pieces] or not $freshPiece
154 0 0 0 $word eq '[' or $word eq '{'
0 0 0 $word eq '[' or $word eq '{' or $word eq '('
0 0 0 $word eq '[' or $word eq '{' or $word eq '(' or $word eq '"'
0 0 0 $word eq '[' or $word eq '{' or $word eq '(' or $word eq '"' or $word eq '"'
0 0 0 $word eq ')' or $word eq '}'
0 0 0 $word eq ')' or $word eq '}' or $word eq ']'
0 0 0 $word eq ')' or $word eq '}' or $word eq ']' or $word eq '"'
0 0 0 $word eq ')' or $word eq '}' or $word eq ']' or $word eq '"' or $word eq '"'
217 0 0 0 $word =~ /['"']/ or not $word =~ /{.*}|\[.*\]|[*?~]/
224 0 0 0 scalar @results > 1 or $results[0] ne $word
327 0 0 0 $_ eq '[' or $_ eq '('
0 0 0 $_ eq '[' or $_ eq '(' or $_ eq '{'
0 0 0 $_ eq '}' or $_ eq ')'
0 0 0 $_ eq '}' or $_ eq ')' or $_ eq ']'
347 0 0 0 $tmp eq '||' or $tmp eq '&&'
405 0 0 0 not $file or substr($file, 0, 1) eq '&'
439 0 0 0 not $file or substr($file, 0, 1) eq '&'
568 0 0 0 $$tokens[0][0] == 1 || $$tokens[0][0] == 3
573 0 0 0 $$token[1] eq 'noglob' || $$token[1] eq 'noexpand' || $$token[1] eq 'noalias'