Branch Coverage

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


line true false branch
45 0 0 unless ($HAS_CHMLIB)
50 0 0 unless ($? >> 8 == 0)
64 0 0 unless (-f $strfile)
68 0 0 unless open my $fh, "<", $strfile
75 0 0 unless $url =~ /\.html$/u
77 0 0 unless -f $url
93 0 0 unless (defined $hhc)
114 0 0 if (defined $gen)
128 0 0 if (-d $f) { }
0 0 elsif (is_image_path($f)) { }
138 0 0 unless open my $fh, "<", $_
156 0 0 if @covers
171 0 0 if (@children and my($alt) = $children[0]->findnodes(".//img/\@alt"))
172 0 0 if ($alt->value =~ /next|prev/iu)
176 0 0 if (@children and my($alt) = $children[-1]->findnodes(".//img/\@alt"))
177 0 0 if ($alt->value =~ /next|prev/iu)
183 0 0 if (@children and $children[0]->nodeName eq "hr")
186 0 0 if (@children and $children[-1]->nodeName eq "hr")
251 0 0 if (defined $out) { }
252 0 0 unless open my $fh, ">", $out
284 0 0 if (defined $out) { }
285 0 0 unless open my $fh, ">", $out
318 0 0 unless $self->has_cover
321 0 0 unless open my $rh, "<", $self->{'_cover'}
326 0 0 if (defined $out) { }
327 0 0 unless open my $wh, ">", $out
352 0 0 if ($n >= $self->image_num)
356 0 0 unless open my $fh, "<", $self->{'_images'}[$n]