Branch Coverage

blib/lib/Mojolicious/Plugin/WebComponent.pm
Criterion Covered Total %
branch 20 34 58.8


line true false branch
23 0 1 if ($app->renderer->helpers->{$helper})
29 1 2 @_ == 1 ? :
42 0 1 $self->config->{'javascript_path'} ? :
43 0 1 $self->config->{'template_path'} ? :
47 0 1 if (exists $params->{'template'})
49 0 0 if ($template =~ /(false|f|no|0)/iu or not defined $template) { }
58 1 0 unless (defined $skipTemplate)
63 1 0 if ($app->renderer->{'templates'}{"$template.html"})
84 9 27 if ($tmpl and not $tmplInit)
85 1 8 if ($_ =~ /let tmpl;/u)
90 0 8 if ($_ =~ /shadowRoot.appendChild\(tmpl.content.cloneNode\(true\)\)/u)
110 0 2 $base ? :
113 0 2 if (exists $opts->{'template'})
114 0 0 defined $opts->{'template'} ? :
122 2 0 unless $name =~ /\.js$/u
127 1 1 if length $paramString
135 2 1 if $c->stash->{'mojo.captures'}