Condition Coverage

blib/lib/File/DesktopEntry.pm
Criterion Covered Total %
condition 39 61 63.9


and 3 conditions

line !l l&&!r l&&r condition
123 2 0 0 not $file and $name =~ /-/
142 5 1 1 $m && $c
231 7 0 0 $t and $t eq 'true'
249 5 0 0 $VERBOSE and $?
303 8 54 0 not $s =~ /^\%[FUD]$/ and $s =~ /\%[FUD]/
311 43 17 1 @argv > 1 and $s =~ /\%[fud]/
315 60 0 0 $VERBOSE and $s =~ /%([nNvm])/
354 6 15 0 wantarray and $^O eq 'MSWin32'
543 10 15 23 not $group and $k eq 'Exec'
621 4 10 0 $enc and $enc ne 'UTF-8'
656 0 1 0 $file && -w $file
0 1 0 not $file && -w $file and defined $self->{'name'}

or 2 conditions

line l !l condition
232 0 0 $ENV{'TERMINAL'} || 'xterm -e'
477 3 111 join('|', map(quotemeta($_), @lang)) || 'C'
493 6 145 $group ||= 'Desktop Entry'
530 2 4 $group ||= 'Desktop Entry'
709 0 2 $locale ||= 'C'

or 3 conditions

line l !l&&r !l&&!r condition
134 0 9 8 not $lang or $lang eq 'C'
9 1 7 not $lang or $lang eq 'C' or $lang eq 'POSIX'
527 26 4 4 $self->{'groups'} or not $self->{'file'}
582 4 10 0 $file ||= $self->{'file'}
641 1 0 0 shift() || $self->{'file'}