Branch Coverage

blib/lib/Env/Bash.pm
Criterion Covered Total %
branch 35 118 29.6


line true false branch
54 0 1 if $name =~ /DESTROY$/
56 0 1 unless $name =~ /^[_A-Z][_A-Z0-9]*$/
57 1 0 $_[0] && ref $_[0] && $_[0]->isa('Env::Bash') ? :
116 0 1 if $$s{'options'}{'Keys'}
130 0 0 unless ($$s{'keys'})
141 0 1 if (exists $$s{'keys'} and @{$$s{'keys'};})
142 0 0 unless defined wantarray
143 0 0 wantarray ? :
147 1 0 unless defined wantarray
148 0 0 wantarray ? :
162 4 0 unless (%options)
163 3 1 unless defined wantarray
164 1 0 wantarray ? :
167 0 0 unless defined wantarray
168 0 0 wantarray ? :
211 0 1 unless $s->EXISTS($key)
246 0 0 unless $prevkey
248 0 0 if $$s{'keys'}[$idx] eq $prevkey
260 0 3 unless defined wantarray
262 0 3 unless $name
266 3 0 if (_have_bash()) { }
273 0 3 if $options{'Debug'}
278 0 0 $$href{$name} ? :
282 0 0 if ($options{'ForceArray'})
283 0 0 wantarray ? :
285 0 0 defined $ret[0] ? :
0 0 wantarray ? :
293 1 0 if ($bash) { }
295 0 1 @sources ? :
300 0 1 if (@sources and $options{'SourceOnly'})
311 0 1 unless defined wantarray
312 1 0 wantarray ? :
323 0 28 unless $name
324 0 28 if $name eq 'BASH_EXECUTION_STRING'
325 0 28 if ($options{'SelectRegex'})
326 0 0 unless $name =~ /$options{'SelectRegex'}/
335 0 6 unless $HAVEBASH
339 0 0 if $bash and -f $bash and -x _
340 6 0 if system('bash', '-c', '') == 0
342 0 0 if $bash and -f $bash and -x _
343 0 0 if $HAVEBASH
355 0 0 ref $options{'Source'} && ref $options{'Source'} eq 'ARRAY' ? :
0 4 $options{'Source'} ? :
356 4 0 unless @srcs
359 0 0 unless $source
361 0 0 unless $source
362 0 0 unless (-f $source)
366 0 0 unless (-x _)
371 0 0 unless (open $fh, $source)
395 0 4 if $options{'Debug'}
397 3 1 if $? or $@
400 0 1 if $options{'Debug'}
413 0 0 if $options{'Debug'}
420 0 17 if ($_[0] and ref $_[0] and ref $_[0] eq 'ARRAY') { }
425 17 0 unless (%options)
426 0 17 unless defined wantarray
427 17 0 wantarray ? :
429 0 0 unless defined wantarray
430 0 0 wantarray ? :