Branch Coverage

blib/lib/HTML/PhotoAlbum.pm
Criterion Covered Total %
branch 0 106 0.0


line true false branch
174 0 0 unless defined(my $toencode = shift())
188 0 0 ref $_[0] eq 'HASH' ? :
194 0 0 unless $key and $val
202 0 0 if $dec >= 5
210 0 0 $ENV{'SERVER_ADMIN'} =~ /\@/ ? :
227 0 0 if $real
235 0 0 unless open FILE, "<$file"
239 0 0 if /^\s*#/ or /^\s*$/
245 0 0 if $data{$k}
250 0 0 wantarray ? :
318 0 0 unless (ref $$self{'opt'}{'albums'} eq 'HASH')
323 0 0 if (my $album = $$self{'cgi'}->param('album'))
329 0 0 unless $$self{'opt'}{'albums'}{$album}
339 0 0 unless opendir ALBUM, $albumdir
348 0 0 if (-s "$albumdir/$$self{'opt'}{'captions'}")
355 0 0 if $image =~ /(?:$thumb_pat)(?:$image_pat)$/
364 0 0 if (-s "$albumdir/$basename$thsuf$suffix")
475 0 0 unless @_ % 2 == 0
493 0 0 if ($key =~ /^([a-zA-Z]+)_(\w+)/) { }
0 0 elsif ($key eq 'font') { }
0 0 elsif ($key eq 'bgcolor') { }
0 0 elsif ($key eq 'width') { }
0 0 elsif ($key eq 'align') { }
0 0 elsif ($key eq 'center') { }
506 0 0 $value ? :
514 0 0 $album ? :
520 0 0 if ($opt{'header'})
545 0 0 if (not $album) { }
552 0 0 if ($$self{'cgi'}->param('image') or $$self{'cgi'}->param('slideshow')) { }
559 0 0 unless ref $data
569 0 0 if ($nextimg > $numimgs) { }
570 0 0 if ($opt{'navwrap'}) { }
582 0 0 if ($previmg < 1) { }
583 0 0 if ($opt{'navwrap'}) { }
595 0 0 if ($$self{'cgi'}->param('slideshow') and $nextimg and $$self{'cgi'}->param('submit') ne 'Stop')
605 0 0 $$data[2] ? :
619 0 0 unless ($page = $$self{'cgi'}->param('page'))
620 0 0 if (-f "$albumdir/$opt{'intro'}")
621 0 0 if (open INTRO, "<$albumdir/$opt{'intro'}") { }
627 0 0 wantarray ? :
635 0 0 unless $page >= 0 and $page <= $numpages
640 0 0 if ($opt{'navbar'})
649 0 0 if ($page - 1 > 0) { }
0 0 elsif ($opt{'navwrap'}) { }
658 0 0 if ($page == $numpages) { }
659 0 0 if ($opt{'navwrap'}) { }
672 0 0 if ($i == $page) { }
694 0 0 if $i % $opt{'eachrow'} == 0
698 0 0 if (ref $data) { }
702 0 0 if ($$data[0])
711 0 0 $opt{'navfull'} ? :
721 0 0 if $i % $opt{'eachrow'} == 0
739 0 0 wantarray ? :