Branch Coverage

blib/lib/Circle/Session/Tabbed.pm
Criterion Covered Total %
branch 3 76 3.9


line true false branch
15 2 0 unless keys %$opts
69 0 2 if grep {$_ == $item;} $self->items
80 0 0 if (ref $item) { }
82 0 0 unless defined $index
97 0 2 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)
271 0 0 if ($item->isa('Circle::RootObj'))
304 0 0 unless defined $index
306 0 0 if $position eq 'right'
307 0 0 if $position eq 'left'
308 0 0 if $position eq 'first'
309 0 0 if $position eq 'last'
312 0 0 if ($position =~ /^[+-]/) { }
0 0 elsif ($position =~ /^\d+$/) { }
325 0 0 if $index + $delta < 0
326 0 0 if $index + $delta > $#$tabs
350 0 0 unless defined $index
352 0 0 if $position eq 'right'
353 0 0 if $position eq 'left'
354 0 0 if $position eq 'first'
355 0 0 if $position eq 'last'
357 0 0 if ($position =~ /^[+-]/) { }
0 0 elsif ($position =~ /^\d+$/) { }