Condition Coverage

blib/lib/Term/Shell/MultiCmd.pm
Criterion Covered Total %
condition 29 132 21.9


and 3 conditions

line !l l&&!r l&&r condition
89 2 32 0 $_[0] and ref $_[0]
111 7 0 0 @p and not eval { do { &GetOptions(\%p, @p) } }
143 7 0 15 @w and 'HASH' eq ref $c
170 0 0 8 $o->{'enable_sh_pipe'} and not $o->{'piper'}
420 0 0 0 $root and $o->{'cmds'} != $root
425 0 0 0 exists $$root{$_->[0]} and $$root{$_->[0]}[1] eq $_->[1]
671 0 0 0 'ARRAY' eq ref $hist and @$hist
672 0 0 0 ref $d and ref $more
0 0 0 ref $d and ref $more and ref $d eq ref $more
707 0 0 0 not $o->{'stop'} and defined(my $line = $o->{'term'}->readline($o->prompt))
735 0 0 0 $comp and $comp == \&Term::Shell::MultiCmd::_root_command_comp
737 0 0 0 @args and $args[-1] =~ /^\-\-?(.*)/
841 0 0 0 $par and not $line
904 0 0 0 $r and not ref $r
908 0 0 0 $r and $c =~ s/$r//
925 8 0 0 $c eq 'cd' and $o->{'root_cmd'}
0 0 0 $c eq 'cd' and $o->{'root_cmd'} and not exists $r->{'cd'}
930 0 8 0 $o->{'help_cmd'} and $c eq 'ls' && !exists $r->{'ls'} || $c eq 'help' && !exists $r->{'help'}
953 7 0 0 'c' eq ($o->{'piper'} || '') and not $fh
972 6 1 0 $o->{'empty_cmd'} and $cmd eq ($o->{'root'} || $o->{'cmds'})
7 0 0 $o->{'empty_cmd'} and $cmd eq ($o->{'root'} || $o->{'cmds'}) and 0 == length join('', @args)
974 7 0 0 'HASH' eq ref $cmd and length $o->{'query_cmd'}
7 0 0 'HASH' eq ref $cmd and length $o->{'query_cmd'} and exists $$cmd{$o->{'query_cmd'}}

or 2 conditions

line l !l condition
115 0 7 $p{'ARGV'} ||= [@ARGV]
132 41 0 $o->{'delimiterRE'} || '\\s+'
137 8 0 $o->{'delimiter'} || ' '
142 8 0 $o->{'delimiter'} || ' '
571 1 7 $r->{$w} ||= {}
758 0 0 $c[-1] || ''
806 0 0 $h->{$k}[0] || 'a command'
0 0 $h->{$k}{$dlm} || 'a prefix'
811 0 0 $h->{$dlm} || 'A command prefix'
920 8 0 $cmd || ''
952 0 7 $o->{'piper'} || ''
953 0 7 $o->{'piper'} || ''
976 0 7 $cmd->[3] || ''
1011 0 0 $1 || ''
1033 0 0 $o->{'prompt'} || 'shell'

or 3 conditions

line l !l&&r !l&&!r condition
112 0 0 0 $1 || $_
142 0 0 8 $o->{'root'} || $o->{'cmds'}
404 0 8 0 ref $class || $class
705 0 0 0 $o->{'term'} ||= &_new_readline($o)
742 0 0 0 'ARRAY' eq ref $cb or 'HASH' eq ref $cb
745 0 0 0 'ARRAY' eq ref $comp or 'HASH' eq ref $comp
908 0 0 0 not $r or $r and $c =~ s/$r//
919 0 0 8 $o->{'root'} || $o->{'cmds'}
930 0 0 8 $c eq 'ls' && !exists $r->{'ls'} || $c eq 'help' && !exists $r->{'help'}
972 0 0 1 $o->{'root'} || $o->{'cmds'}
1012 0 0 0 $pos || length $lu