Branch Coverage

blib/lib/Circle/Session/Tabbed.pm
Criterion Covered Total %
branch 0 84 0.0


line true false branch
15 0 0 unless keys %$opts
69 0 0 if grep {$_ == $item;} $self->items
80 0 0 if (ref $item) { }
82 0 0 unless defined $index
97 0 0 if exists $self->{'items'}{$item}
123 0 0 if (not defined $curindex) { }
0 0 elsif ($curindex != $index) { }
139 0 0 unless $curitem or $path =~ m[^/]
141 0 0 if $path =~ s[^/][]
144 0 0 unless length $_
147 0 0 if ($curitem->can('get_item')) { }
0 0 elsif ($curitem->can('enumerate_items')) { }
157 0 0 unless defined $nextitem
169 0 0 if $p eq ''
170 0 0 if $p eq '/'
213 0 0 if ($opts->{'all'}) { }
220 0 0 if (defined $itempath)
221 0 0 if ($itempath =~ m[^/]) { }
230 0 0 defined $itempath ? :
237 0 0 if length $name
239 0 0 if (my $subitems = $item->can('enumerate_items') && $item->enumerate_items)
258 0 0 if ($opts->{'all'}) { }
0 0 elsif (defined $itempath) { }
263 0 0 unless $visible{$item}
265 0 0 if (my $subitems = $item->can('enumerate_items') && $item->enumerate_items)
291 0 0 if ($item->isa('Circle::RootObj'))
324 0 0 unless defined $index
326 0 0 if $position eq 'right'
327 0 0 if $position eq 'left'
328 0 0 if $position eq 'first'
329 0 0 if $position eq 'last'
332 0 0 if ($position =~ /^[+-]/) { }
0 0 elsif ($position =~ /^\d+$/) { }
345 0 0 if $index + $delta < 0
346 0 0 if $index + $delta > $#$tabs
370 0 0 unless defined $index
372 0 0 if $position eq 'right'
373 0 0 if $position eq 'left'
374 0 0 if $position eq 'first'
375 0 0 if $position eq 'last'
377 0 0 if ($position =~ /^[+-]/) { }
0 0 elsif ($position =~ /^\d+$/) { }