Branch Coverage

blib/lib/Ixchel/Actions/template.pm
Criterion Covered Total %
branch 0 44 0.0


line true false branch
121 0 0 if (defined $opts{'config'})
125 0 0 if (defined $opts{'t'}) { }
131 0 0 if (defined $opts{'share_dir'})
135 0 0 if (defined $opts{'opts'})
139 0 0 if (defined $opts{'argv'})
143 0 0 if (defined $opts{'vars'})
147 0 0 if (defined $opts{'vars'})
157 0 0 unless (defined $self->{'opts'}{'t'})
164 0 0 if (-f $template) { }
0 0 elsif (-f '/usr/local/etc/ixchel/templates/' . $template) { }
0 0 elsif (-f '/usr/local/etc/ixchel/templates/' . $template . '.tt') { }
0 0 elsif (-f $self->{'share_dir'} . '/templates/' . $template) { }
0 0 elsif (-f $self->{'share_dir'} . '/templates/' . $template . '.tt') { }
188 0 0 if (-f $_[0])
196 0 0 if (-d $_[0])
204 0 0 unless (defined $_[0])
211 0 0 if ($^O eq "freebsd")
217 0 0 if ($^O eq "linux")
223 0 0 if ($^O eq "linux" and -f '/usr/bin/systemctl' || -f '/bin/systemctl')
234 0 0 unless (defined $template_data)
241 0 0 unless $self->{'t'}->process(\$template_data, $vars, \$output)
243 0 0 unless ($self->{'opts'}{'np'})