| blib/lib/Linux/DesktopFiles.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| condition | 7 | 33 | 21.2 |
| line | !l | l&&!r | l&&r | condition |
|---|---|---|---|---|
| 150 | 2 | 0 | 0 | defined $self->{'skip_entry'} and ref $self->{'skip_entry'} eq 'ARRAY' |
| 152 | 0 | 0 | 0 | exists $info{$pair_ref->{'key'}} and $info{$pair_ref->{'key'}} =~ /$pair_ref->{'re'}/u |
| 159 | 2 | 0 | 0 | defined $self->{'substitutions'} and ref $self->{'substitutions'} eq 'ARRAY' |
| 205 | 2 | 0 | 0 | $self->{'terminalize'} and defined $info{'Terminal'} |
| 2 | 0 | 0 | $self->{'terminalize'} and defined $info{'Terminal'} and exists $TRUE_VALUES{$info{'Terminal'}} |
| line | l | !l | condition |
|---|---|---|---|
| 180 | 0 | 0 | $info{'Categories'} // '' |
| 2 | 0 | $info{'Categories'} // '' | |
| 241 | 1 | 0 | $self->parse_desktop_file($desktop_file) // (next) |
| line | l | !l&&r | !l&&!r | condition |
|---|---|---|---|---|
| 92 | 0 | 0 | 0 | index($dir, '/local/') != -1 || index($dir, '/.local/') != -1 |
| 100 | 0 | 0 | 0 | $is_local or not exists $table{$file} |
| 144 | 2 | 0 | 0 | $info{'Name'} //= substr($desktop_file, rindex($desktop_file, '/') + 1, -8) |
| 147 | 0 | 0 | 0 | $Chr{$1} // $1 |