Branch Coverage

blib/lib/Filesys/Virtual/Async/inMemory.pm
Criterion Covered Total %
branch 1 236 0.4


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)
51 0 0 if (exists $opt{'readonly'} and defined $opt{'readonly'}) { }
52 0 0 $opt{'readonly'} ? :
62 0 0 if (exists $opt{'filesystem'} and defined $opt{'filesystem'}) { }
64 0 0 unless (_validate_fs($opt{'filesystem'}))
82 0 0 if (exists $opt{'cwd'} and defined $opt{'cwd'}) { }
144 0 0 if (defined $ro)
145 0 0 $ro ? :
157 0 0 unless (defined $cwd)
158 0 0 if (defined $cb) { }
168 0 0 if (defined $cb) { }
182 0 0 if (ref $self ne 'Filesys::Virtual::Async::inMemory')
183 0 0 if ($self->can('_open')) { }
185 0 0 if (defined $scalar_ref) { }
187 0 0 if (defined $fh) { }
202 0 0 if (exists $self->_fs->{$path}) { }
203 0 0 if (not S_ISDIR($self->_fs->{$path}{'mode'})) { }
206 0 0 if (defined $fh) { }
245 0 0 if (not defined $ret or $ret == 0) { }
262 0 0 if ($self->readonly) { }
266 0 0 if (ref $self ne 'Filesys::Virtual::Async::inMemory')
267 0 0 if ($self->can('_write')) { }
281 0 0 if (not $ret) { }
298 0 0 if (not defined $ret or $ret == 0) { }
304 0 0 if ($ret) { }
326 0 0 if (ref $path)
337 0 0 if (ref $self ne 'Filesys::Virtual::Async::inMemory')
338 0 0 if ($self->can('_stat')) { }
340 0 0 if (defined $ret) { }
352 0 0 if (exists $self->_fs->{$path}) { }
356 0 0 exists $$info{'data'} ? :
360 0 0 if (S_ISDIR($modes))
365 0 0 if $_ =~ m[^$path/?[^/]+$]
368 0 0 if exists $$info{'gid'}
369 0 0 if exists $$info{'uid'}
372 0 0 if exists $$info{'atime'}
373 0 0 if exists $$info{'mtime'}
398 0 0 if (ref $path)
407 0 0 if ($self->readonly)
415 0 0 if (ref $self ne 'Filesys::Virtual::Async::inMemory')
416 0 0 if ($self->can('_utime')) { }
424 0 0 if (exists $self->_fs->{$path}) { }
426 0 0 unless (defined $atime)
427 0 0 unless (defined $mtime)
445 0 0 if (ref $path)
454 0 0 if ($self->readonly)
462 0 0 if (ref $self ne 'Filesys::Virtual::Async::inMemory')
463 0 0 if ($self->can('_chown')) { }
471 0 0 if (exists $self->_fs->{$path}) { }
473 0 0 if (defined $uid and $uid > -1)
476 0 0 if (defined $gid and $gid > -1)
494 0 0 if (ref $path)
503 0 0 if ($self->readonly)
511 0 0 if (ref $self ne 'Filesys::Virtual::Async::inMemory')
512 0 0 if ($self->can('_truncate')) { }
520 0 0 if (exists $self->_fs->{$path}) { }
521 0 0 if (not S_ISDIR($self->_fs->{$path}{'mode'})) { }
525 0 0 if ($offset > length $self->_fs->{$path}{'data'}) { }
529 0 0 if ($offset != length $self->_fs->{$path}{'data'})
553 0 0 if (ref $path)
562 0 0 if ($self->readonly)
570 0 0 if (ref $self ne 'Filesys::Virtual::Async::inMemory')
571 0 0 if ($self->can('_chmod')) { }
579 0 0 if (exists $self->_fs->{$path}) { }
597 0 0 if ($self->readonly)
605 0 0 if (ref $self ne 'Filesys::Virtual::Async::inMemory')
606 0 0 if ($self->can('_unlink')) { }
614 0 0 if (exists $self->_fs->{$path}) { }
615 0 0 if (not S_ISDIR($self->_fs->{$path}{'mode'})) { }
637 0 0 if ($self->readonly)
645 0 0 if ($dev == 0) { }
655 0 0 if (ref $self ne 'Filesys::Virtual::Async::inMemory')
656 0 0 if ($self->can('_mknod')) { }
664 0 0 if (exists $self->_fs->{$path} or $path eq '.' or $path eq '..') { }
715 0 0 if ($self->readonly)
723 0 0 if (ref $self ne 'Filesys::Virtual::Async::inMemory')
724 0 0 if ($self->can('_rename')) { }
732 0 0 if (exists $self->_fs->{$srcpath}) { }
733 0 0 if (not exists $self->_fs->{$dstpath}) { }
757 0 0 if ($self->readonly)
768 0 0 if (ref $self ne 'Filesys::Virtual::Async::inMemory')
769 0 0 if ($self->can('_mkdir')) { }
777 0 0 if (exists $self->_fs->{$path}) { }
801 0 0 if ($self->readonly)
809 0 0 if (ref $self ne 'Filesys::Virtual::Async::inMemory')
810 0 0 if ($self->can('_rmdir')) { }
818 0 0 if (exists $self->_fs->{$path}) { }
819 0 0 if (S_ISDIR($self->_fs->{$path}{'mode'})) { }
822 0 0 if ($children == 1) { }
849 0 0 if (ref $self ne 'Filesys::Virtual::Async::inMemory')
850 0 0 if ($self->can('_readdir')) { }
858 0 0 if (exists $self->_fs->{$path}) { }
859 0 0 if (S_ISDIR($self->_fs->{$path}{'mode'})) { }
889 0 0 if (ref $self ne 'Filesys::Virtual::Async::inMemory')
890 0 0 if ($self->can('_load')) { }
898 0 0 if (exists $self->_fs->{$path}) { }
899 0 0 if (not S_ISDIR($self->_fs->{$path}{'mode'})) { }
921 0 0 if ($self->readonly)
929 0 0 if (ref $self ne 'Filesys::Virtual::Async::inMemory')
930 0 0 if ($self->can('_copy')) { }
938 0 0 if (exists $self->_fs->{$srcpath}) { }
939 0 0 if (not exists $self->_fs->{$dstpath}) { }
963 0 0 if ($self->readonly)
969 0 0 if (ref $self ne 'Filesys::Virtual::Async::inMemory')
970 0 0 if ($self->can('_move')) { }
990 0 0 if (ref $self ne 'Filesys::Virtual::Async::inMemory')
991 0 0 if ($self->can('_scandir')) { }
999 0 0 if (exists $self->_fs->{$path}) { }
1000 0 0 if (S_ISDIR($self->_fs->{$path}{'mode'})) { }
1003 0 0 if $_ =~ m[^$path/?[^/]+$]
1006 0 0 if $_ =~ m[^$path/?[^/]+$]
1029 0 0 if ($self->readonly)
1037 0 0 if (ref $self ne 'Filesys::Virtual::Async::inMemory')
1038 0 0 if ($self->can('_rmtree')) { }
1046 0 0 if (exists $self->_fs->{$path}) { }
1047 0 0 if (S_ISDIR($self->_fs->{$path}{'mode'})) { }