Branch Coverage

blib/lib/Filesys/Virtual/Async/Dispatcher.pm
Criterion Covered Total %
branch 1 138 0.7


line true false branch
24 1 0 if (not defined &DEBUG)
35 0 0 if (@_ & 1 and ref $_[0] and ref $_[0] eq 'HASH') { }
39 0 0 if (@_ & 1)
50 0 0 if (not exists $opt{'rootfs'} && defined $opt{'rootfs'} && ref $opt{'rootfs'}) { }
54 0 0 unless ($opt{'rootfs'}->isa('Filesys::Virtual::Async'))
78 0 0 if (not defined $path) { }
89 0 0 unless (defined $vfs and ref $vfs and $vfs->isa('Filesys::Virtual::Async'))
101 0 0 if (exists $$self{'mounts'}{$path})
110 0 0 if ($path eq 'File::Spec'->rootdir) { }
114 0 0 if (@dirs) { }
134 0 0 unless exists $$curpos{$dir}
145 0 0 if (not defined $path) { }
156 0 0 if ($path eq 'File::Spec'->rootdir)
164 0 0 unless (exists $$self{'mounts'}{$path})
173 0 0 if (@matches > 1)
194 0 0 if (not exists $$self{'mounts'}{$curpath}) { }
219 0 0 if (exists $$curpos{$dir}) { }
223 0 0 if (not defined $$curpos{$dir}) { }
237 0 0 unless (exists $$self{'mounts'}{$curpath})
255 0 0 unless (defined $cwd)
256 0 0 if (defined $cb) { }
265 0 0 if ($cwd eq $$self{'cwd'})
266 0 0 if (defined $cb) { }
277 0 0 if (defined $cb) { }
297 0 0 if (openhandle $fh)
299 0 0 unless (defined $ret)
323 0 0 if (defined $fh) { }
325 0 0 if (defined $mapping) { }
326 0 0 if (exists $$self{'fhmap'}{$mapping})
353 0 0 if (defined $mapping) { }
354 0 0 if (exists $$self{'fhmap'}{$mapping}) { }
375 0 0 if (defined $mapping) { }
376 0 0 if (exists $$self{'fhmap'}{$mapping}) { }
397 0 0 if (defined $mapping) { }
398 0 0 if (exists $$self{'fhmap'}{$mapping}) { }
420 0 0 if (defined $mapping) { }
421 0 0 if (exists $$self{'fhmap'}{$mapping}) { }
440 0 0 if (defined $mapping) { }
441 0 0 if (exists $$self{'fhmap'}{$mapping}) { }
459 0 0 if (ref $fh_or_path and ref $fh_or_path eq 'ARRAY')
468 0 0 if (ref $fh_or_path) { }
471 0 0 if (defined $mapping) { }
472 0 0 if (exists $$self{'fhmap'}{$mapping}) { }
493 0 0 if (ref $fh_or_path and ref $fh_or_path eq 'ARRAY')
502 0 0 if (ref $fh_or_path) { }
505 0 0 if (defined $mapping) { }
506 0 0 if (exists $$self{'fhmap'}{$mapping}) { }
527 0 0 if (ref $fh_or_path) { }
530 0 0 if (defined $mapping) { }
531 0 0 if (exists $$self{'fhmap'}{$mapping}) { }
552 0 0 if (ref $fh_or_path) { }
555 0 0 if (defined $mapping) { }
556 0 0 if (exists $$self{'fhmap'}{$mapping}) { }
577 0 0 if (ref $fh_or_path) { }
580 0 0 if (defined $mapping) { }
581 0 0 if (exists $$self{'fhmap'}{$mapping}) { }
602 0 0 if (ref $fh_or_path) { }
605 0 0 if (defined $mapping) { }
606 0 0 if (exists $$self{'fhmap'}{$mapping}) { }
647 0 0 if ($mount != $mount2)
666 0 0 if ($mount != $mount2)
694 0 0 if ($mount != $mount2)
751 0 0 if ($mount != $mount2)
770 0 0 if ($mount != $mount2)
799 0 0 if ($matches) { }
816 0 0 if (defined $mapping) { }
817 0 0 if (exists $$self{'fhmap'}{$mapping}) { }
836 0 0 if (defined $mapping) { }
837 0 0 if (exists $$self{'fhmap'}{$mapping}) { }