Branch Coverage

blib/lib/Shell/EnvImporter/Shell.pm
Criterion Covered Total %
branch 29 44 65.9


line true false branch
79 195 0 if ($self->can($field))
81 43 152 exists $args{$field} ? :
82 30 165 if (ref($curval) =~ /ARRAY/) { }
0 165 elsif (ref($curval) =~ /HASH/) { }
190 14 31 unless @ready
194 28 14 if ($ready->eof) { }
196 14 14 unless $s->count
205 0 14 if ($s->count)
234 0 14 if (defined $$output{'STDERR'})
257 14 0 if ($line =~ /^$tag 0/) { }
265 0 14 if (@shell_output)
275 14 0 if ($line =~ /^$tag (\d+)/) { }
283 0 14 if (@command_output)
293 14 360 if ($line =~ /^$tag (\d+)/) { }
306 14 0 if ($rv->shell_status == 0 and $rv->command_status == 0 and $rv->env_status == 0) { }
406 0 0 @_ == 1 ? :
410 0 0 if (defined $values{$var}) { }
441 321 39 unless ($ignore{$var})
443 307 14 if (exists $old_env{$var}) { }
445 13 294 if ($old_env{$var} ne $$new_env{$var})
476 0 14 if $ignore{$var}
495 0 141 if $self->debuglevel >= $level