Condition Coverage

blib/lib/NVMPL/Switcher.pm
Criterion Covered Total %
condition 5 23 21.7


and 3 conditions

line !l l&&!r l&&r condition
17 0 0 0 $ENV{'ComSpec'} and $ENV{'ComSpec'} =~ /cmd\.exe/i
55 0 0 0 @matches and -d $matches[0]
83 1 0 0 $^O eq "MSWin32" and $ENV{'PSModulePath'}

or 2 conditions

line l !l condition
27 0 1 $ENV{'SHELL'} || ''

or 3 conditions

line l !l&&r !l&&!r condition
67 0 0 1 -l $current_link or -d $current_link
133 1 0 0 $ENV{'HOME'} // $ENV{'USERPROFILE'}
140 1 0 0 {'Bash', "$home/.bashrc", 'Zsh', "$home/.zshrc", 'Cmd', "$home/.cmdrc", 'PowerShell', "$home/Documents/WindowsPowerShell/Microsoft.PowerShell_profile.ps1"}->{$shell_type} || "$home/.bashrc"
168 0 0 0 $line =~ /^\s*$/ or $line =~ /^#/