Branch Coverage

blib/lib/Mojolicious/Plugin/TagHelpers/ContentBlock.pm
Criterion Covered Total %
branch 44 64 68.7


line true false branch
19 21 4 if ($Mojolicious::Plugin::TagHelpers::ContentBlock::a->{'position'} < $Mojolicious::Plugin::TagHelpers::ContentBlock::b->{'position'}) { }
3 1 elsif ($Mojolicious::Plugin::TagHelpers::ContentBlock::a->{'position'} > $Mojolicious::Plugin::TagHelpers::ContentBlock::b->{'position'}) { }
0 1 elsif ($Mojolicious::Plugin::TagHelpers::ContentBlock::a->{'position_b'} < $Mojolicious::Plugin::TagHelpers::ContentBlock::b->{'position_b'}) { }
1 0 elsif ($Mojolicious::Plugin::TagHelpers::ContentBlock::a->{'position_b'} > $Mojolicious::Plugin::TagHelpers::ContentBlock::b->{'position_b'}) { }
45 1 4 if (my $c_param = $app->config('TagHelpers-ContentBlock'))
49 1 0 if (defined $param->{$_}) { }
50 1 0 if (ref $param->{$_} eq 'HASH')
56 1 0 ref $c_param->{$_} eq 'HASH' ? :
76 0 37 ref $_[-1] eq 'CODE' ? :
79 18 19 ref $_[-1] eq 'HASH' ? :
85 0 37 if ($cb)
92 1 36 if (@_)
97 0 1 if ($hparam{'template'}) { }
0 1 elsif ($hparam{'inline'}) { }
111 0 1 if ($hparam{'position'})
112 0 0 unless $block
117 0 1 if $legacy
121 19 18 unless ($block)
133 17 2 if $content_block{$name}
134 7 12 if ($c->stash('cblock.' . $name))
146 35 2 if ($_->{'inline'}) { }
2 0 elsif ($_->{'template'}) { }
0 0 elsif ($_->{'cb'}) { }
161 37 0 if ($value)
164 1 36 if $string and $sep
182 8 10 if ($c->tx->{'req'}) { }
203 0 14 unless $name
206 10 4 if ($content_block{$name})
207 8 2 if @{$content_block{$name};}
211 2 4 if $c->stash('cblock.' . $name)
222 0 2 if (ref $value eq 'HASH') { }
2 0 elsif (ref $value eq 'ARRAY') { }