Branch Coverage

blib/lib/App/spaceless.pm
Criterion Covered Total %
branch 21 32 65.6


line true false branch
19 1 2 unless defined $shell
54 0 0 if $^O eq 'cygwin'
55 0 6 unless &GetOptions('csh', sub { $shell = 'Shell::Guess'->c_shell; } , 'sh', sub { $shell = 'Shell::Guess'->bourne_shell; } , 'cmd', sub { $shell = 'Shell::Guess'->cmd_shell; } , 'command', sub { $shell = 'Shell::Guess'->command_shell; } , 'fish', sub { $shell = 'Shell::Guess'->fish_shell; } , 'korn', sub { $shell = 'Shell::Guess'->korn_shell; } , 'power', sub { $shell = 'Shell::Guess'->power_shell; } , 'login', sub { $shell = 'Shell::Guess'->login_shell; } , 'sep=s', sub { $sep = quotemeta $_[1]; $config->set_path_sep($_[1]); } , 'sep-in=s', sub { $sep = quotemeta $_[1]; } , 'sep-out=s', sub { $config->set_path_sep($_[1]); } , 'squash|s', \$squash, 'no-cygwin', sub { $cygwin = 0 if $^O eq 'cygwin'; } , 'list|l', \$list, 'expand|x', \$expand, 'trim|t', \$trim, 'f=s', \$file, 'help|h', \$help, 'version|v', \$version)
63 0 6 if ($help)
68 2 4 if ($version)
74 2 2 unless defined $shell
76 0 4 $^O eq 'cygwin' && $shell->is_win32 ? :
78 3 1 unless @ARGV
80 0 4 $^O eq 'cygwin' ? :
82 0 4 $expand ? :
87 2 29 $trim ? :
88 31 0 $cygwin ? :
92 0 4 if ($squash)
99 0 4 if ($list)
102 4 0 unless ($list)
104 1 3 if (defined $file) { }