Branch Coverage

blib/lib/EBook/Ishmael/EBook/Zip.pm
Criterion Covered Total %
branch 24 44 54.5


line true false branch
42 24 12 unless $file =~ /\.zip$/u
57 0 0 if (-d $f) { }
0 0 elsif (-f $f and is_image_path($f)) { }
74 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) { }
114 0 11 unless (@{$self->{'_content'};})
137 3 3 if ($f =~ /\.txt$/u) { }
138 0 3 unless open my $fh, "<", $f
143 3 0 unless (defined $self->{'Encode'})
160 0 3 if (defined $out) { }
161 0 0 unless open my $fh, ">", $out
180 3 3 if ($c =~ /\.txt$/u) { }
181 0 3 unless open my $fh, "<", $c
186 2 1 unless (defined $self->{'Encode'})
204 0 3 if (defined $out) { }
205 0 0 unless open my $fh, ">", $out
237 0 2 unless $self->has_cover
239 0 2 unless open my $fh, "<", $self->{'_cover'}[0]
262 0 2 if ($n >= $self->image_num)
266 0 2 unless open my $fh, "<", $self->{'_images'}[$n][0]
280 11 0 if -d $self->{'_tmpdir'}