Branch Coverage

blib/lib/NVMPL/Uninstaller.pm
Criterion Covered Total %
branch 23 40 57.5


line true false branch
17 2 11 unless ($version)
24 0 11 $version =~ /^v/i ? :
32 1 10 unless (-d $target_dir)
38 1 9 if ($current_version and $current_version eq $vtag)
44 1 0 if ($alternative) { }
50 0 0 if (-l $current_link)
51 0 0 unless unlink $current_link
58 1 9 unless (_confirm_uninstall($vtag))
67 9 0 if ($success and not @$errors) { }
95 0 1 unless opendir my $dh, $versions_dir
97 3 2 if /^v\d+\.\d+\.\d+$/ and -d "File::Spec"->catdir($versions_dir, $_)
103 1 0 if @versions
121 1 0 if $a_val != $b_val
147 0 9 unless opendir my $dh, $downloads_dir
153 2 0 if (-f $file_path)
154 0 2 unless unlink $file_path
167 0 1 unless (@versions)
180 0 3 if ($@)
186 1 0 if (@successful)
190 0 1 if (@failed)