Branch Coverage

blib/lib/EBook/Ishmael/EBook/CHM.pm
Criterion Covered Total %
branch 0 60 0.0


line true false branch
43 0 0 if ($HAS_CHMLIB) { }
0 0 elsif ($HAS_HH) { }
45 0 0 unless ($? >> 8 == 0)
50 0 0 unless ($? >> 8 == 0)
68 0 0 unless (-f $strfile)
72 0 0 unless open my $fh, "<", $strfile
79 0 0 unless $url =~ /\.html$/u
81 0 0 unless -f $url
97 0 0 unless (defined $hhc)
118 0 0 if (defined $gen)
132 0 0 if (-d $f) { }
0 0 elsif (-f $f) { }
136 0 0 unless defined $format
154 0 0 if (@children and my($alt) = $children[0]->findnodes(".//img/\@alt"))
155 0 0 if ($alt->value =~ /next|prev/iu)
159 0 0 if (@children and my($alt) = $children[-1]->findnodes(".//img/\@alt"))
160 0 0 if ($alt->value =~ /next|prev/iu)
166 0 0 if (@children and $children[0]->nodeName eq "hr")
169 0 0 if (@children and $children[-1]->nodeName eq "hr")
233 0 0 if (defined $out) { }
234 0 0 unless open my $fh, ">", $out
266 0 0 if (defined $out) { }
267 0 0 unless open my $fh, ">", $out
299 0 0 unless $self->has_cover
307 0 0 unless (defined $size)
311 0 0 if ($size->[1] / $size->[0] < "1.3")
314 0 0 if (not defined $cover or $cover->[2][0] * $cover->[2][1] < $size->[1] * $size->[0])
322 0 0 unless (defined $cover)
343 0 0 if ($n >= $self->image_num)
347 0 0 unless open my $fh, "<", $self->{'_images'}[$n][0]