Branch Coverage

blib/lib/Zoidberg/Shell.pm
Criterion Covered Total %
branch 21 74 28.3


line true false branch
21 0 16 if $@
26 0 16 if exists $$set{'norc'} and delete $$set{'norc'}
27 16 0 unless defined $$set{'interactive'}
37 0 0 unless $Zoidberg::CURRENT
41 191 25 eval { do { $_[0]->isa('Zoidberg::Shell') } } ? :
50 0 0 if $cmd eq 'DESTROY'
51 0 0 if ref $_[0] eq 'Zoidberg::Shell'
59 0 182 ref $_[0] eq 'HASH' ? :
60 0 182 $_[0] =~ /^-\||\|-$/ ? :
61 0 182 if $pipe
66 0 182 if delete $$meta{'die_silently'}
69 23 159 if (grep {ref $_;} @_) { }
49 110 elsif (@_ > 1) { }
79 4 164 shift() ? :
80 75 93 if (not @_) { }
0 93 elsif (wantarray) { }
93 0 elsif (not grep(ref($_), @_)) { }
82 0 0 ref $_ eq 'ARRAY' && !grep(ref($_), @$_) ? :
90 0 0 if (@_ == 1) { }
91 0 0 ref $_[0] eq 'ARRAY' && !grep(ref($_), @{$_[0];}) ? :
96 0 0 ref $_ eq 'ARRAY' && !grep(ref($_), @$_) ? :
116 0 0 ref $_[0] eq 'HASH' ? :
119 0 0 if delete $$meta{'die_silently'}
133 0 0 wantarray ? :
140 0 0 unless open CMD, '|-', @_
143 0 0 wantarray ? :
161 0 0 if ($$opts{'all'}) { }
164 0 0 unless delete $$self{'aliases'}{$_}
176 0 0 if (ref $_[0] eq 'HASH') { }
0 0 elsif (ref $_[0]) { }
177 0 0 if $#_
188 0 0 exists $$self{'settings'}{$key} ? :
196 0 16 unless -f $file
201 0 16 if $@
213 0 0 $_[1] ? :
219 0 0 unless $j
233 0 0 ref $_[1] ? :