Branch Coverage

blib/lib/Mojolicious/Plugin/PetalTinyRenderer.pm
Criterion Covered Total %
branch 21 36 58.3


line true false branch
21 1 7 defined $inline ? :
22 0 8 unless defined $name
28 1 7 if (defined $inline) { }
33 1 6 if (defined(my $path = $renderer->template_path($options))) { }
6 0 elsif (my $d = $renderer->get_data_template($options)) { }
38 1 0 if (open my $file, "<$encoding", $path) { }
65 7 1 unless ($xml =~ /\bxmlns:/u)
81 0 0 if ($validator) { }
83 0 0 if ($validator->validate($xml)) { }
97 7 1 if ($deldiv)
115 1 25 if &blessed($obj) and $obj->isa('Mojo::Collection')
136 0 1 if $method =~ /^[A-Z]+?$/u
137 0 1 if $method =~ /^_/u
138 0 1 if $method =~ /(?:\:*?)DESTROY$/u
142 0 1 unless $self->ctx->app->renderer->helpers->{$method}
151 0 1 if $subref
154 0 1 unless exists $self->ctx->app->renderer->helpers->{$method}
163 0 0 if $subref