Branch Coverage

blib/lib/Config/Model/Backend/Systemd.pm
Criterion Covered Total %
branch 28 44 63.6


line true false branch
44 0 29 unless ($ba)
57 0 23 if ($app =~ /file/u) { }
75 0 0 unless ($file)
85 0 0 $unit_type ? :
104 0 23 unless ($select_unit)
111 0 23 if ($app ne "systemd-user" and $select_unit =~ /$filter/u)
113 0 0 if ($app eq 'systemd') { }
0 0 elsif ($app ne 'systemd-$unit_type') { }
128 23 0 if ($select_unit ne '*') { }
140 81 22 unless $dir->is_dir
147 8 22 if ($select_unit ne "*" and not $file_name =~ /$select_unit/u)
160 4 19 unless ($dir->is_dir)
172 4 20 if $select_unit ne "*" and not $file_name =~ /$select_unit/u
175 1 19 if ($file->realpath eq '/dev/null') { }
12 7 elsif ($dot_d and $file->child('override.conf')->exists) { }
190 2 17 unless ($found)
194 1 1 $unit_type ? :
213 0 13 if $self->instance->application =~ /file/u
214 7 6 if $self->instance->application eq "systemd"
218 0 6 unless $dir->is_dir
227 1 3 if $select_unit ne "*" and not $unit_name =~ /$select_unit/u
230 0 3 unless ($unit_collection->defined($unit_name))