Branch Coverage

blib/lib/HTML/WebMake/NormalContent.pm
Criterion Covered Total %
branch 0 168 0.0


line true false branch
40 0 0 if (defined $datasource)
47 0 0 if (defined $attrval)
48 0 0 unless ($util->parse_boolean($attrval))
58 0 0 if (defined $attrval)
65 0 0 if (defined $attrval)
70 0 0 if (defined $$attrs{'is_sitemap'})
77 0 0 if (defined $attrval)
81 0 0 if ($$self{'is_sitemap'})
87 0 0 if ($$self{'is_root'})
92 0 0 if ($$self{'is_navlinks'})
99 0 0 if ($$self{'is_breadcrumbs'})
105 0 0 unless ($$self{'no_map'})
109 0 0 if ($$self{'is_root'} and $$self{'no_map'})
153 0 0 unless (defined $$self{'cached_metas'})
160 0 0 unless (defined $val)
163 0 0 unless (defined $val)
178 0 0 if (not defined $$self{'extra_metas'})
190 0 0 if ($key =~ /^this\./il)
195 0 0 if ($$self{'no_map'})
197 0 0 if (defined $$self{'extra_metas'}{$key})
202 0 0 if (not defined $$self{'parsed_metadata_tags'})
221 0 0 unless ($str =~ /$HTML::WebMake::NormalContent::WM_META_PAT/il)
230 0 0 if ($str =~ /$HTML::WebMake::NormalContent::WM_META_PAT.*?>/il)
244 0 0 unless (defined $val)
257 0 0 if (defined $$self{'main'}{'metadatas'}{'this.title'} and defined $$self{'main'}{'metadatas'}{$$self{'name'} . '.title'})
275 0 0 if ($fmt eq 'text/pod') { }
0 0 elsif ($fmt eq 'text/html') { }
0 0 elsif ($fmt eq 'text/et') { }
0 0 elsif ($$txt =~ /^\s*(\S[^\n]*?)\s*\n/ls) { }
276 0 0 if ($$txt =~ /^\s*=head1\s+[-A-Z0-9_ ]+\n\s+(\S[^\n]*?)\n/ls)
282 0 0 if ($$txt =~ m[(.*?)]ils) { }
0 0 elsif ($$txt =~ m[(.*?)]ils) { }
291 0 0 if ($$txt =~ /(?:^\n+|\n\n)([^\n]+)[ \t]*\n[-=\~]{3,}\n/ls) { }
0 0 elsif ($$txt =~ /(?:^\n+|\n\n)([0-9A-Z][^a-z]+)[ \t]*\n\n/ls) { }
311 0 0 if defined $existingmeta
315 0 0 if ($fmt ne 'text/html')
322 0 0 if $val =~ /\$\[this.title\]/il
365 0 0 if (defined $$self{'datasource'}) { }
378 0 0 unless (defined $format)
384 0 0 unless (defined $fmt)
404 0 0 if ($$self{'is_navlinks'}) { }
0 0 elsif ($$self{'is_breadcrumbs'}) { }
0 0 elsif ($$self{'keep_as_is'}) { }
419 0 0 unless (defined $txt)
421 0 0 if (defined $$self{'preproc'})
423 0 0 unless (defined $txt)
429 0 0 unless ($ignore_reformat_cache)
430 0 0 if ($$self{'is_sitemap'})
431 0 0 if ($$main{'force_output'}) { }
0 0 elsif (length $txt < $HTML::WebMake::NormalContent::MIN_FMT_CACHE_LEN) { }
440 0 0 if ($fmt ne $format)
453 0 0 if ($format eq 'text/html' or $format eq 'text/xml')
474 0 0 unless ($$self{'no_map'})
494 0 0 unless ($$self{'no_map'})
519 0 0 if (defined $$self{'text'})
520 0 0 unless (defined $$self{'location'})
521 0 0 unless (defined $$self{'datasource'})
531 0 0 if (defined $$self{'datasource'})
540 0 0 unless (defined $$self{'datasource'})
547 0 0 if (defined $$self{'datasource'})
558 0 0 if $filename =~ /^\(/l
560 0 0 if (not $$self{'no_map'} || defined $$self{'reffed_in_url'})
570 0 0 if ($$self{'no_map'})
576 0 0 if (defined $url)
580 0 0 if (defined $url)
595 0 0 if $$self{'no_map'} or $self->is_generated_content
596 0 0 if $$self{'added_nav_metas_flag'}
600 0 0 if (defined $$self{'up_content'})
603 0 0 if (defined $$self{'next_content'})
606 0 0 if (defined $$self{'prev_content'})
626 0 0 if ($contname ne '') { }
0 0 elsif (defined $$self{'no_nav_' . $dir}) { }
632 0 0 if (not defined $obj && defined($url = $obj->get_url) or $url eq '')
640 0 0 unless (defined $$self{'nav_' . $dir})
674 0 0 unless (defined $root)
685 0 0 unless (defined $contname)
690 0 0 unless (defined $obj)
696 0 0 if $obj == $root
698 0 0 unless defined $upobj
699 0 0 if $upobj == $obj
714 0 0 if (defined $top and defined $$self{'breadcrumb_top_name'})
720 0 0 if (defined $tail and defined $$self{'breadcrumb_tail_name'})
737 0 0 if (not defined $dotdots && defined($url = $obj->get_url) or $url eq '') { }
756 0 0 if ($$self{'is_breadcrumbs'} or $$self{'is_navlinks'}) { }