Branch Coverage

blib/lib/Shell/Guess.pm
Criterion Covered Total %
branch 62 110 56.3


line true false branch
21 0 1 if ($^O eq 'MSWin32')
28 0 0 if (defined $shell_name)
30 0 0 if ($shell_name =~ /cmd\.exe$/) { }
0 0 elsif ($shell_name =~ /powershell\.exe$/) { }
0 0 elsif ($shell_name =~ /command\.com$/) { }
39 0 1 if ($^O eq 'MSWin32')
41 0 0 if ($ENV{'ComSpec'} =~ /cmd\.exe$/) { }
47 0 1 if $^O eq 'VMS'
48 0 1 if $^O eq 'dos'
75 1 0 unless $shell
84 0 2 if ($^O eq 'MSWin32')
86 0 0 if (Win32::IsWin95()) { }
92 0 2 if $^O eq 'VMS'
93 0 2 if $^O eq 'dos'
97 0 2 if ($^O eq 'darwin')
101 0 0 if defined $shell
107 0 2 if not defined $shell and -l $pw_shell
110 2 0 unless defined $shell
151 11 0 ref $_[0] ? :
10 1 unless $self->{'bash'}
11 0 ref $_[0] ? :
7 4 unless $self->{'bourne'}
11 0 ref $_[0] ? :
9 2 unless $self->{'c'}
11 0 ref $_[0] ? :
10 1 unless $self->{'cmd'}
11 0 ref $_[0] ? :
10 1 unless $self->{'command'}
11 0 ref $_[0] ? :
10 1 unless $self->{'dcl'}
11 0 ref $_[0] ? :
10 1 unless $self->{'fish'}
11 0 ref $_[0] ? :
10 1 unless $self->{'korn'}
11 0 ref $_[0] ? :
10 1 unless $self->{'power'}
11 0 ref $_[0] ? :
10 1 unless $self->{'tc'}
13 0 ref $_[0] ? :
4 9 unless $self->{'unix'}
11 0 ref $_[0] ? :
10 1 unless $self->{'vms'}
13 0 ref $_[0] ? :
10 3 unless $self->{'win32'}
11 0 ref $_[0] ? :
10 1 unless $self->{'z'}
164 4 0 ref $_[0] ? :
171 9 0 ref $_[0] ? :
178 0 4 if ($shell =~ /tcsh$/) { }
0 4 elsif ($shell =~ /csh$/) { }
0 4 elsif ($shell =~ /ksh$/) { }
0 4 elsif ($shell =~ /bash$/) { }
0 4 elsif ($shell =~ /zsh$/) { }
0 4 elsif ($shell =~ /fish$/) { }
0 4 elsif ($shell =~ /sh$/) { }