line |
true |
false |
branch |
21
|
0 |
16 |
if (not defined $name or $name eq '') |
26
|
0 |
16 |
unless (defined $path and ref $path eq 'ARRAY') |
43
|
0 |
1 |
unless (blessed $dir and $dir->isa('Path::Class::Dir')) |
69
|
0 |
11 |
unless (defined $arg_ref and ref $arg_ref eq 'HASH') |
73
|
0 |
11 |
unless (blessed $target and $target->isa('Path::Class::Dir')) |
77
|
0 |
11 |
unless (defined $variables and ref $variables eq 'HASH') |
88
|
2 |
12 |
unless (-d $target_dir) |
89
|
0 |
2 |
unless $target_dir->mkpath |
96
|
2 |
12 |
if (-e $output_file and not $$arg_ref{'overwrite'}) |
116
|
0 |
14 |
unless (blessed $file and $file->isa('Path::Class::File')) |
122
|
6 |
8 |
if ($file =~ /\.tt$/x) { } |
127
|
0 |
6 |
unless $template->process($file->stringify, $variables, \$content) |
141
|
0 |
26 |
unless (blessed $path and $path->isa('Path::Class::File')) |
145
|
0 |
26 |
if (not defined $variables or ref $variables ne 'HASH') |
153
|
15 |
0 |
if (defined $$variables{$1}) { } |
162
|
4 |
22 |
if (scalar @parts > scalar 'File::Spec'->no_upwards(@parts) or scalar @parts < scalar @orig_parts) |
177
|
24 |
18 |
unless ($child->is_dir) |
180
|
10 |
14 |
if ($key =~ s/\.tt$//x) |
184
|
23 |
1 |
unless (exists $$file{$key}) |