Branch Coverage

blib/lib/File/MimeInfo/Applications.pm
Criterion Covered Total %
branch 11 48 22.9


line true false branch
29 0 2 unless @_ == 1
32 2 0 wantarray ? :
36 0 0 unless @_ == 1
43 0 0 unless @_ == 2
48 0 0 if ref $desktop_file
49 0 0 unless length $desktop_file
51 0 0 unless $desktop_file =~ /\.desktop$/
56 0 0 unless @_ == 2
60 0 0 unless my $word = $1
94 2 0 unless (-f $user || $system && -f $system || $deprecated && -f $deprecated || $distro && -f $distro || $legacy && -f $legacy and -r _)
119 2 2 if grep {$_ eq $cache;} @done
121 0 2 unless -f $cache and -r _
124 0 2 unless -f $file and -r _
140 2 0 if (open LIST, "<", $file)
143 4 2 unless /^\Q$mimetype\E=(.*)$/
150 0 2 unless ($succeeded)
161 0 0 if (-f $file) { }
162 0 0 unless open LIST, "<", $file
164 0 0 unless /^\Q$mimetype\E=/
174 0 0 unless open LIST, ">", $file
177 0 0 unless close LIST
184 0 0 if $file
191 0 0 if -d $dir
201 0 0 unless -d $path