Branch Coverage

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


line true false branch
44 0 26 unless ($ba)
57 0 21 if ($app =~ /file/u) { }
75 0 0 unless ($file)
85 0 0 $unit_type ? :
104 0 21 unless ($select_unit)
111 0 21 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 21 0 if ($select_unit ne '*') { }
140 75 20 unless $dir->is_dir
147 8 20 if ($select_unit ne "*" and not $file_name =~ /$select_unit/u)
160 3 18 unless ($dir->is_dir)
172 4 19 if $select_unit ne "*" and not $file_name =~ /$select_unit/u
175 1 18 if ($file->realpath eq '/dev/null') { }
8 10 elsif ($dot_d and $file->child('override.conf')->exists) { }
190 2 16 unless ($found)
194 1 1 $unit_type ? :
213 0 12 if $self->instance->application =~ /file/u
214 7 5 if $self->instance->application eq "systemd"
218 0 5 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))