Condition Coverage

blib/lib/Term/Shell/MultiCmd.pm
Criterion Covered Total %
condition 30 137 21.9


and 3 conditions

line !l l&&!r l&&r condition
93 2 32 0 $_[0] and ref $_[0]
115 7 0 0 @p and not eval { do { &GetOptions(\%p, @p) } }
147 7 0 15 @w and "HASH" eq ref $c
174 0 0 8 $o->{'enable_sh_pipe'} and not $o->{'piper'}
441 0 0 0 $root and $o->{'cmds'} != $root
446 0 0 0 exists $$root{$_->[0]} and $$root{$_->[0]}[1] eq $_->[1]
692 0 0 0 "ARRAY" eq ref $hist and @$hist
693 0 0 0 ref $d and ref $more
0 0 0 ref $d and ref $more and ref $d eq ref $more
746 0 0 0 not $o->{'stop'} and defined(my $line = $o->{'term'}->readline($o->prompt))
774 0 0 0 $comp and $comp == \&Term::Shell::MultiCmd::_root_command_comp
776 0 0 0 @args and $args[-1] =~ /^\-\-?(.*)/
880 0 0 0 $par and not $line
943 0 0 0 $r and not ref $r
947 0 0 0 $r and $c =~ s/$r//
965 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'}
970 0 8 0 $o->{'help_cmd'} and $c eq 'ls' && !exists $r->{'ls'} || $c eq 'help' && !exists $r->{'help'}
1000 7 0 0 "c" eq ($o->{'piper'} || '') and not $fh
1019 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)
1021 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'}}
1031 0 0 0 defined $file and defined $cmd

or 2 conditions

line l !l condition
119 0 7 $p{'ARGV'} ||= [@ARGV]
136 41 0 $o->{'delimiterRE'} || '\\s+'
141 8 0 $o->{'delimiter'} || ' '
146 8 0 $o->{'delimiter'} || ' '
592 1 7 $r->{$w} ||= {}
797 0 0 $c[-1] || ''
845 0 0 $h->{$k}[0] || 'a command'
0 0 $h->{$k}{$dlm} || 'a prefix'
850 0 0 $h->{$dlm} || 'A command prefix'
959 8 0 $cmd || ''
960 8 0 $c ||= ""
999 0 7 $o->{'piper'} || ''
1000 0 7 $o->{'piper'} || ''
1023 0 7 $cmd->[3] || ''
1073 0 0 $1 || ''
1095 0 0 $o->{'prompt'} || 'shell'

or 3 conditions

line l !l&&r !l&&!r condition
116 0 0 0 $1 || $_
146 0 8 0 $o->{'root'} || $o->{'cmds'}
424 0 8 0 ref $class || $class
744 0 0 0 $o->{'term'} ||= &_new_readline($o)
781 0 0 0 "ARRAY" eq ref $cb or "HASH" eq ref $cb
784 0 0 0 "ARRAY" eq ref $comp or "HASH" eq ref $comp
947 0 0 0 not $r or $r and $c =~ s/$r//
958 0 8 0 $o->{'root'} || $o->{'cmds'}
970 0 0 8 $c eq 'ls' && !exists $r->{'ls'} || $c eq 'help' && !exists $r->{'help'}
1019 0 1 0 $o->{'root'} || $o->{'cmds'}
1074 0 0 0 $pos || length $lu