Branch Coverage

blib/lib/PFT/Map.pm
Criterion Covered Total %
branch 45 54 83.3


line true false branch
58 0 2 unless $tree->isa('PFT::Content')
86 3 11 if (@rs != 1)
88 1 2 @rs ? :
94 11 4 if (defined $resolved) { }
95 11 0 if (not ref $resolved or $resolved->isa('PFT::Map::Node')) { }
105 4 0 $@ ? :
123 17 8 if ($cntnt and $cntnt->isa('PFT::Content::Entry') and $cntnt->exists)
126 0 25 if exists $self->{'idx'}{$id}
143 8 2 if defined $prev
148 3 7 if (not defined $prev_month or $prev_month->date <=> $m_date)
151 1 2 $m_page->exists ? :
154 1 2 if defined $prev_month
173 5 3 exists $tags{$_} ? :
176 1 2 $t_page->exists ? :
207 2 1 if (@_) { }
306 5 8 if (defined(my $prev = $node->prev))
307 5 8 if (defined(my $next = $node->next))
308 5 8 if (defined(my $month = $node->month))
309 7 6 if (defined $node->header and defined(my $date = $node->header->date))
313 2 11 if (my(@l) = $node->days)
316 4 9 if (my(@l) = $node->tags)
319 2 11 if (my(@l) = $node->tagged)
350 0 0 exists $self->{'idx'}{$id} ? :
363 15 1 exists $idx->{$id} ? :
419 0 7 if (not defined $n or $n <= 0)
420 0 0 defined $n ? :
431 2 5 wantarray ? :