Branch Coverage

blib/lib/Config/Model/Backend/Systemd/Unit.pm
Criterion Covered Total %
branch 16 24 66.6


line true false branch
43 49 0 if (my $fp = $file_path->basename)
50 14 35 if $app_type and $app_type ne "user"
52 0 49 unless $unit_type
59 0 14 unless ($app =~ /^systemd(-user)?$/u or $app =~ /^systemd-$unit_type/u)
156 0 45 unless $res
167 0 120 if (ref $data eq "ARRAY")
168 0 0 if $check eq "yes"
178 9 111 if ($leaf_object->value_type eq "boolean")
179 1 8 if $data eq "on"
180 0 9 if $data eq "off"
191 10239 344 unless defined $unit_data
208 6 124 ref $data ? :