Branch Coverage

blib/lib/App/WRT.pm
Criterion Covered Total %
branch 89 108 82.4


line true false branch
391 0 11 if (defined $config_hashref->{'entry_map'})
397 0 11 if (defined $config_hashref->{'embedded_perl'})
441 0 11 unless (-f $self->{'template_path'})
468 0 251 unless length $html_cache{$entry}
476 0 251 if ($@)
479 131 120 if (@headers)
510 10 20 if (/^\d/u) { }
517 30 401 if (@tagged_entries)
562 0 61 if defined $self->{'overlay'}
565 1 60 if ($self->{'entries'}->is_extant('index')) { }
577 61 0 if (scalar @entries == 1)
625 1 250 if ($_ eq 'index')
626 10 240 if (m[^[\d/]+[[:lower:]_/]+$]u)
627 30 210 if (m[^\d+/\d{1,2}/\d{1,2}$]u)
628 40 170 if (m[^\d+/\d{1,2}$]u)
629 40 130 if (/^\d+$/u)
630 130 0 if (/^[[:lower:]_]/u)
646 0 61 if $alias =~ m[/$]u
648 2 59 if $alias eq 'all'
649 3 56 if $alias eq 'new'
650 0 56 if $alias eq 'fulltext'
674 122 0 if (exists $description{$link}) { }
681 61 61 if ($link eq 'new')
686 5 117 if ($self->{'title'} eq $link)
707 3 60 if ($entry eq 'new')
716 21 39 if ($prev)
724 19 41 if ($next)
747 10 30 if $self->{'entries'}->is_file($year)
751 0 30 unless $self->{'entries'}->is_dir($year)
757 10 20 if $self->{'entries'}->has_index($year)
796 10 20 if ($count > 1) { }
10 10 elsif ($count == 0) { }
10 0 elsif ($count == 1) { }
822 30 10 if ($self->{'entries'}->is_dir($month)) { }
10 0 elsif ($self->{'entries'}->is_file($month)) { }
825 10 20 if $self->{'entries'}->has_index($month)
871 31 171 if (@tags)
898 30 221 if (my $ico_markup = $self->icon_markup($entry))
903 91 160 if ($self->{'entries'}->is_file($entry))
910 100 60 if ($self->{'entries'}->has_index($entry))
917 60 100 if (@sub_entries >= 1)
921 50 10 if ($level eq 'index' or $self->{'entries'}->has_prop($entry, 'wrt-noexpand')) { }
10 0 elsif ($level eq 'all') { }
928 0 10 if $se =~ /$self->{'binfile_expr'}/u
983 85 65 if (defined $self->{'title_cache'}{$entry})
1006 18 356 if defined $cache{$entry . $alt}
1009 151 205 if ($self->{'entries'}->is_file($entry)) { }
175 30 elsif ($self->{'entries'}->is_dir($entry)) { }
1022 45 1124 if ($self->{'entries'}->is_extant("$icon_basepath.$_"))
1029 281 45 unless $suffix
1071 30 171 if ($tag_list)
1196 0 12 if ($self->{'metadata_html_cache'}{$entry})
1249 3 0 if (defined $self->{'favicon_url'})
1255 0 6 if ($self->{'metadata_html_cache'}{$entry})