Branch Coverage

blib/lib/LibZip.pm
Criterion Covered Total %
branch 48 98 48.9


line true false branch
19 0 2 if not $INC{'LibZip.pm'}
40 2 0 unless defined $LIBTMP
41 2 0 unless defined $CALL_BEGIN
42 2 0 if not defined $HOOK_ADDED
54 0 2 if (-s $args[0])
56 2 0 if $LIBZIP
66 1 14 if $DEBUG
70 14 1 if ($pack_fl eq '')
80 2 0 if (not $HOOK_ADDED)
93 0 2 if $DEBUG
95 0 2 unless (-s $libzip)
111 2 8 if ($libtree_i =~ m[^(/*(?:lib|site/lib))/[^\\/]]i)
112 2 0 unless $libbases{$1}++
126 0 4 if ($LIBTREE{$dir})
131 2 0 if ($libzipdir eq '') { }
134 0 2 if ($LIBTREE{$LibZipInfo_pm}) { }
151 1 28 if ($LIBTREE{$fl})
169 1 0 if ($size > 0 and -s $filename != $size)
171 1 0 if $DEBUG
200 18 17 if $dir ne '' and not $dir =~ m[/$]
214 1 0 if $DEBUG
216 0 1 if ($DEP{$pack})
218 0 1 unless ($LIBTREE{$pack} or $LIBTREE{$_[0]})
223 0 0 if ($LIBTREE{$path0} or $LIBTREE{$path1})
229 0 0 unless $exists
235 3 2 unless ($path =~ m[/$])
236 0 3 if ($path =~ m[^\Q$pack\E[^/]+$] and not $path =~ /\.pm$/i)
241 0 0 if ($size > 0 and -s $extract != $size)
243 0 0 if $DEBUG
249 1 0 if ($pack =~ m[^(?:lib|site/lib)/([^/]+.*)$] and not $_[1])
253 0 2 if ($LIBTREE{$auto})
257 0 1 if (%LibZip::Info::DEPENDENCIES)
262 0 0 if ($Key =~ /^$package$/i)
264 0 0 if (ref $LibZip::Info::DEPENDENCIES{$Key} eq 'ARRAY') { }
269 0 0 if ($path =~ m[/$]) { }
271 0 0 if $DEBUG
276 0 0 if ($size > 0 and -s $extract != $size)
278 0 0 if $DEBUG
295 0 0 if $LIBTREE{'DynaLoader.pm'} or $LIBTREE{'lib/DynaLoader.pm'}
308 3 8 if ($filename ne '.' and $filename ne '..')
310 1 2 if (-d $file) { }
311 1 0 if not $LIBTMPFIX or $filename ne 'auto'
315 2 0 if ($_[0] ne '') { }
0 0 elsif (not kill(0, $pid)) { }
316 0 2 if ($pid != $_[0] and not kill(0, $pid)) { }
325 2 2 unless ($has_files)
341 4 20 if ($filename =~ /^libzip-(-?\d+)-\w+-tmp$/)
344 0 4 if (-d $file and not kill(0, $pid))
358 4 2 if $CALL_BEGIN