Branch Coverage

blib/lib/Shell/Config/Generate.pm
Criterion Covered Total %
branch 43 86 50.0


line true false branch
46 8 0 if @list > 0
57 8 0 if @list > 0
178 54 0 if (defined $shell) { }
180 2 52 if (ref $shell eq '')
183 2 0 if ('Shell::Guess'->can($method)) { }
206 8 42 $shell->is_win32 ? :
208 3 47 if (exists $self->{'shebang'} and $shell->is_unix)
210 1 2 if (defined $self->{'shebang'}) { }
216 1 1 if ($self->{'echo_off'} and $shell->is_cmd || $shell->is_command)
225 18 79 if ($command eq 'set_path_sep')
232 8 71 if ($command eq 'set_path')
239 22 57 if ($command eq 'set') { }
32 25 elsif ($command eq 'append_path' or $command eq 'prepend_path') { }
10 15 elsif ($command eq 'comment') { }
15 0 elsif ($command eq 'alias') { }
242 0 22 if ($shell->is_c) { }
0 22 elsif ($shell->is_fish) { }
22 0 elsif ($shell->is_bourne) { }
0 0 elsif ($shell->is_cmd or $shell->is_command) { }
0 0 elsif ($shell->is_power) { }
277 0 32 if ($shell->is_c) { }
32 0 elsif ($shell->is_bourne) { }
0 0 elsif ($shell->is_fish) { }
0 0 elsif ($shell->is_cmd or $shell->is_command or $shell->is_power) { }
281 0 0 if ($command eq 'prepend_path') { }
291 16 16 if ($command eq 'prepend_path') { }
303 0 0 if ($command eq 'prepend_path') { }
311 0 0 $shell->is_power ? :
312 0 0 if ($shell->is_power) { }
315 0 0 if ($command eq 'prepend_path') { }
324 0 0 if ($command eq 'prepend_path') { }
339 10 0 if ($shell->is_unix or $shell->is_power) { }
0 0 elsif ($shell->is_cmd or $shell->is_command) { }
355 5 10 if ($shell->is_bourne) { }
4 6 elsif ($shell->is_c) { }
2 4 elsif ($shell->is_cmd or $shell->is_command) { }
3 1 elsif ($shell->is_power) { }
1 0 elsif ($shell->is_fish) { }
390 0 0 unless open $fh, '>', $filename
391 0 0 unless print $fh $self->generate($shell)
392 0 0 unless close $fh
405 1 0 unless $^O =~ /^(MSWin32|cygwin|msys)$/
406 0 0 /\s/ ? :