Branch Coverage

blib/lib/X11/FreeDesktop/DesktopEntry.pm
Criterion Covered Total %
branch 0 66 0.0


line true false branch
66 0 0 unless $self->parse
77 0 0 if ($line =~ /^[\s\t\r\n]*$/) { }
0 0 elsif ($line =~ /^\s*\#(.+)$/) { }
0 0 elsif ($line =~ /^\[([^\[]+)\]/) { }
0 0 elsif ($current_group ne '') { }
85 0 0 defined $current_group ? :
99 0 0 if ($key =~ /\[([^\[]+)\]$/)
103 0 0 if (defined $$self{'data'}{$current_group}{$key}{$locale}) { }
104 0 0 if $VERBOSE == 1
119 0 0 unless $SILENT == 1
142 0 0 defined $locale ? :
145 0 0 unless (defined $self->get_value($key, $DEFAULT_GROUP, $locale))
196 0 0 defined $group ? :
200 0 0 if defined $locale and defined $$self{'data'}{$group}{$key}{$locale} or not defined $locale
202 0 0 if ($locale ne $DEFAULT_LOCALE)
222 0 0 defined $_[2] ? :
238 0 0 defined $group ? :
240 0 0 if (not $self->has_group($group)) { }
0 0 elsif (not $self->has_key($key, $group)) { }
241 0 0 if $VERBOSE == 1
245 0 0 if $VERBOSE == 1
270 0 0 defined $group ? :
271 0 0 defined $locale ? :
276 0 0 if (not defined $$self{'data'}{$group}{$key}{$locale}) { }
277 0 0 if ($locale =~ /^[a-z]{2}_[A-Z]{2}$/) { }
282 0 0 $locale eq $DEFAULT_LOCALE ? :
308 0 0 defined $group ? :
309 0 0 defined $locale ? :
328 0 0 if (defined $$self{'comments'}{$ROOT_GROUP})
339 0 0 if (defined $$self{'comments'}{$group} and defined $$self{'comments'}{$group}{''})
347 0 0 $locale ne $DEFAULT_LOCALE ? :
350 0 0 if (defined $$self{'comments'}{$group} and defined $$self{'comments'}{$group}{$name})
405 0 0 $_[0]->get_value('StartupNotify', $DEFAULT_GROUP, $_[1]) eq 'true' ? :