Branch Coverage

blib/lib/EBook/Ishmael/EBook/Zip.pm
Criterion Covered Total %
branch 22 44 50.0


line true false branch
33 24 12 unless $file =~ /\.zip$/u
48 0 0 if (-d $f) { }
0 0 elsif (-f $f and is_image_path($f)) { }
65 11 33 if (-d $f) { }
11 22 elsif (-f $f and is_image_path($f)) { }
22 0 elsif (-f $f and $f =~ /\.(x?html?|txt)$/u) { }
105 0 11 unless (@{$self->{'_content'};})
128 3 3 if ($f =~ /\.txt$/u) { }
129 0 3 unless open my $fh, "<", $f
146 0 3 if (defined $out) { }
147 0 0 unless open my $fh, ">", $out
165 3 3 if ($_ =~ /\.txt$/u) { }
166 0 3 unless open my $fh, "<", $_
186 0 3 if (defined $out) { }
187 0 0 unless open my $fh, ">", $out
220 0 3 unless $self->has_cover
225 0 3 unless open my $rh, "<", $self->{'_cover'}
230 0 3 if (defined $out) { }
231 0 0 unless open my $wh, ">", $out
256 0 2 if ($n >= $self->image_num)
260 0 2 unless open my $fh, "<", $self->{'_images'}[$n]
274 11 0 if -d $self->{'_tmpdir'}