Branch Coverage

blib/lib/Template/Declare/Tags.pm
Criterion Covered Total %
branch 69 78 88.4


line true false branch
43 88 15 unless (@_)
58 7 103 if (ref $_[0] and ref $_[0] eq 'HASH')
68 52 58 unless ($module->can('get_tag_list'))
70 0 52 if ($@)
89 319 13333 if not $override and *$slot{'CODE'}
300 11 147 if (wantarray) { }
364 66 53 if ((caller)->isa('Template::Declare')) { }
466 28 10 if (lc $key eq 'id')
467 8 20 if ($ELEMENT_ID_CACHE{$val}++)
474 2 32 wantarray ? :
518 487 12678 if (defined $alternative)
528 199 288 unless ($name =~ /^(?:base|tr)$/)
532 0 487 unless $name = $alternative
546 85 326 if (defined wantarray and not wantarray) { }
608 0 5 ref $_ ? :
613 0 5 if not length $content and length $last
765 32 379 if defined $tagset->namespace
791 26 0 if defined $_
801 11 82 wantarray ? :
807 2 346 ref $_ && $_->isa('Template::Declare::Tag') ? :
810 151 260 if not length $content and length $last
811 68 343 if length $attrs
813 336 75 if (length $content) { }
37 38 elsif ($tagset->can_combine_empty_tags($tag)) { }
815 127 209 if $content =~ /\
824 79 332 ref $more_code && $more_code->isa('CODE') ? :
833 209 16 if (substr($template, 0, 1) ne '/')
841 3 299 if ($_ eq '..') { }
280 22 elsif ($_ ne '.' and $_ ne '') { }
860 0 225 ref $template && $template->isa('Template::Declare::Tag') ? :
866 16 209 unless ($callable)
868 15 1 unless $inside_template
873 6 203 if (my $instrumentation = 'Template::Declare'->around_template) { }
897 31 81 $raw ? :
0 112 ref $item eq 'CODE' ? :
911 8 517 unless defined $val
915 517 0 unless ($SKIP_XML_ESCAPING)
925 424 93 unless $skip_postprocess
1021 5 0 if (defined wantarray) { }