Branch Coverage

blib/lib/Net/FTPServer/InMem/DirHandle.pm
Criterion Covered Total %
branch 41 54 75.9


line true false branch
72 25 47 if ($dir_id) { }
92 0 179 unless defined $filename and length $filename
93 0 179 if $filename =~ m[/]
94 0 179 if $filename eq '..'
95 0 179 if $filename eq '.'
100 99 536 if ($Net::FTPServer::InMem::DirHandle::files{$_}{'dir_id'} == $self->{'fs_dir_id'} and $Net::FTPServer::InMem::DirHandle::files{$_}{'name'} eq $filename)
115 7 126 if ($Net::FTPServer::InMem::DirHandle::dirs{$_}{'parent'} == $self->{'fs_dir_id'} and $Net::FTPServer::InMem::DirHandle::dirs{$_}{'name'} eq $filename)
135 1 2 if $self->is_root
152 2 1 if ($wildcard)
154 1 1 if ($wildcard ne '*') { }
166 1 2 if ($wildcard) { }
169 3 1 if $Net::FTPServer::InMem::DirHandle::dirs{$_}{'parent'} == $self->{'fs_dir_id'}
191 1 2 if ($wildcard) { }
194 6 0 if $Net::FTPServer::InMem::DirHandle::files{$_}{'dir_id'} == $self->{'fs_dir_id'}
222 2 6 if ($wildcard)
224 1 1 if ($wildcard ne '*') { }
236 1 7 if ($wildcard) { }
239 3 1 if $Net::FTPServer::InMem::DirHandle::dirs{$_}{'parent'} == $self->{'fs_dir_id'}
262 1 7 if ($wildcard) { }
265 6 0 if $Net::FTPServer::InMem::DirHandle::files{$_}{'dir_id'} == $self->{'fs_dir_id'}
307 0 0 if $self->is_root
344 0 56 if ($mode eq 'r') { }
55 1 elsif ($mode eq 'w') { }
1 0 elsif ($mode eq 'a') { }
348 0 0 if ($Net::FTPServer::InMem::DirHandle::files{$_}{'dir_id'} == $self->{'fs_dir_id'} and $Net::FTPServer::InMem::DirHandle::files{$_}{'name'} eq $filename)
362 1 203 if ($Net::FTPServer::InMem::DirHandle::files{$_}{'dir_id'} == $self->{'fs_dir_id'} and $Net::FTPServer::InMem::DirHandle::files{$_}{'name'} eq $filename)
382 1 0 if ($Net::FTPServer::InMem::DirHandle::files{$_}{'dir_id'} == $self->{'fs_dir_id'} and $Net::FTPServer::InMem::DirHandle::files{$_}{'name'} eq $filename)