| blib/lib/Mojolicious/Plugin/TemplatePerlish.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| branch | 12 | 22 | 54.5 |
| line | true | false | branch |
|---|---|---|---|
| 16 | 10 | 2 | if defined $options->{'inline'} |
| 19 | 1 | 1 | if (defined(my $path = $renderer->template_path($options))) |
| 23 | 1 | 0 | if (defined(my $tmpl = $renderer->get_data_template($options))) |
| 32 | 0 | 1 | unless open my $fh, '<', $path |
| 46 | 0 | 3 | exists $conf->{'cache'} ? : |
| 47 | 3 | 0 | if $cache_for and ref $cache_for ne 'HASH' |
| 61 | 0 | 12 | unless (defined $type) |
| 62 | 0 | 0 | unless defined $name |
| 68 | 12 | 0 | if ($cache_for) { } |
| 71 | 10 | 2 | unless defined $name |
| 75 | 0 | 0 | unless defined $name |