Branch Coverage

blib/lib/App/WRT.pm
Criterion Covered Total %
branch 85 104 81.7


line true false branch
391 0 10 if (defined $config_hashref->{'entry_map'})
397 0 10 if (defined $config_hashref->{'embedded_perl'})
441 0 10 unless (-f $self->{'template_path'})
468 0 250 unless length $html_cache{$entry}
476 0 250 if ($@)
479 130 120 if (@headers)
510 10 20 if (/^\d/u) { }
517 30 400 if (@tagged_entries)
562 0 60 if defined $self->{'overlay'}
571 60 0 if (scalar @entries == 1)
612 10 240 if (m[^[\d/]+[[:lower:]_/]+$]u)
613 30 210 if (m[^\d+/\d{1,2}/\d{1,2}$]u)
614 40 170 if (m[^\d+/\d{1,2}$]u)
615 40 130 if (/^\d+$/u)
616 130 0 if (/^[[:lower:]_]/u)
632 0 60 if $alias =~ m[/$]u
634 2 58 if $alias eq 'all'
635 3 55 if $alias eq 'new'
636 0 55 if $alias eq 'fulltext'
660 120 0 if (exists $description{$link}) { }
667 60 60 if ($link eq 'new')
672 5 115 if ($self->{'title'} eq $link)
693 3 59 if ($entry eq 'new')
702 21 38 if ($prev)
710 19 40 if ($next)
733 10 30 if $self->{'entries'}->is_file($year)
737 0 30 unless $self->{'entries'}->is_dir($year)
743 10 20 if $self->{'entries'}->has_index($year)
782 10 20 if ($count > 1) { }
10 10 elsif ($count == 0) { }
10 0 elsif ($count == 1) { }
808 30 10 if ($self->{'entries'}->is_dir($month)) { }
10 0 elsif ($self->{'entries'}->is_file($month)) { }
811 10 20 if $self->{'entries'}->has_index($month)
857 31 171 if (@tags)
884 30 220 if (my $ico_markup = $self->icon_markup($entry))
889 90 160 if ($self->{'entries'}->is_file($entry))
896 100 60 if ($self->{'entries'}->has_index($entry))
903 60 100 if (@sub_entries >= 1)
907 50 10 if ($level eq 'index' or $self->{'entries'}->has_prop($entry, 'wrt-noexpand')) { }
10 0 elsif ($level eq 'all') { }
914 0 10 if $se =~ /$self->{'binfile_expr'}/u
969 84 65 if (defined $self->{'title_cache'}{$entry})
992 18 355 if defined $cache{$entry . $alt}
995 150 205 if ($self->{'entries'}->is_file($entry)) { }
175 30 elsif ($self->{'entries'}->is_dir($entry)) { }
1008 45 1120 if ($self->{'entries'}->is_extant("$icon_basepath.$_"))
1015 280 45 unless $suffix
1057 30 171 if ($tag_list)
1182 0 12 if ($self->{'metadata_html_cache'}{$entry})
1235 3 0 if (defined $self->{'favicon_url'})
1241 0 6 if ($self->{'metadata_html_cache'}{$entry})