Condition Coverage

blib/lib/Net/SFTP/SftpServer.pm
Criterion Covered Total %
condition 2 181 1.1


and 3 conditions

line !l l&&!r l&&r condition
319 0 0 0 defined $arg{'response'} and $arg{'response'}->getType == 101
369 0 0 0 $response->getType == 101 and $$self{'log_all_status'} || $response->getStatus != 0 && $response->getStatus != 1
423 0 0 0 defined $arg{'use_tmp_upload'} && $arg{'use_tmp_upload'}
427 0 0 0 defined $arg{'valid_filename_char'} && ref $arg{'valid_filename_char'} eq 'ARRAY'
430 0 0 0 defined $arg{'deny'} and $arg{'deny'} == 1000
0 0 0 defined $arg{'allow'} and $arg{'allow'} != 1000
0 0 0 defined $arg{'allow'} and $arg{'allow'} != 1000 and not defined $arg{'deny'}
580 0 0 0 defined $$self{'handles'}{$handle_no} and $type eq '' || $type eq $$self{'handles'}{$handle_no}->getType
727 0 0 0 $$self{'no_symlinks'} and $$self{'FS'}->IsSymlink($filename)
737 0 0 0 $$self{'use_tmp_upload'} && $$req{'pflags'} & 8 && $$req{'pflags'} & 2 && ($$req{'pflags'} & 16 || $$self{'FS'}->ZeroSize($filename))
777 0 0 0 defined $$self{'move_on_sent'} and $fd->wasSent
0 0 0 defined $$self{'move_on_received'} and $fd->wasReceived
783 0 0 0 defined $$self{'on_file_sent'} and $fd->wasSent
0 0 0 defined $$self{'on_file_received'} and $fd->wasReceived
864 0 0 0 $$self{'max_file_size'} and $$req{'off'} + length($$req{'data'}) > $$self{'max_file_size'}
0 0 0 $$self{'max_file_size'} and $$req{'off'} + length($$req{'data'}) > 0.75 * $$self{'max_file_size'}
909 0 0 0 $$self{'no_symlinks'} and $$self{'FS'}->IsSymlink($filename)
981 0 0 0 $$self{'no_symlinks'} and $$self{'FS'}->IsSymlink($filename)
1025 0 0 0 $$self{'no_symlinks'} and $$self{'FS'}->IsSymlink($pathname)
1067 0 0 0 $$self{'no_symlinks'} and $$self{'FS'}->IsSymlink($pathname)
1106 0 0 0 $$self{'no_symlinks'} and $$self{'FS'}->IsSymlink($filename)
1209 0 0 0 defined $oldpath && defined $newpath
0 0 0 $$self{'no_symlinks'} and $$self{'FS'}->IsSymlink($oldpath)
1214 0 0 0 $$self{'FS'}->IsDir($oldpath) and $self->denyOperation(1001, $response)
1301 0 0 0 defined $$self{'deny'}{$op} and $$self{'deny'}{$op}
1303 0 0 0 defined $$self{'fake_ok'}{$op} and $$self{'fake_ok'}{$op}
1423 0 0 0 $pflags & 1 and $pflags & 2
1506 0 0 0 $key eq 'data' and not $$self{'_decoded_data'}{'data'} =~ /^[\s\w]*$/
1520 0 0 0 my $name = shift() and my $type = shift()
1663 0 0 0 $key eq 'data' and not $$self{'data'} =~ /^[\s\w]*$/
2053 0 0 0 $write_of{$ident} and $read_of{$ident}
2077 0 0 0 $write_of{$ident} and not $read_of{$ident}
0 0 0 $write_of{$ident} and not $read_of{$ident} and $self->Size($filename_of{$ident}) eq $write_of{$ident}
2086 0 0 0 $read_of{$ident} and not $write_of{$ident}
0 0 0 $read_of{$ident} and not $write_of{$ident} and $self->Size($filename_of{$ident}) eq $read_of{$ident}
2207 0 0 0 -d $arg{'dst'} and -w $arg{'dst'}
2258 0 0 0 defined $fh_of{$ident} and $fh_of{$ident}->opened

or 2 conditions

line l !l condition
271 0 1 $$opt{'log'} ||= 'daemon'
393 0 1 $arg{'home'} || '/home'
577 0 0 shift() || ''
656 0 0 $response->getId || 0
686 0 0 $response->getId || 0
1369 0 0 join('/', @newpath) || '/'
1377 0 0 $$attr{'flags'} ||= 0
1956 0 0 $use_tmp ||= 0
2052 0 0 time - $opentime_of{$ident} || 1
2155 0 0 $arg{'dst'} ||= 'processed'
2156 0 0 $arg{'dir_perms'} ||= 504

or 3 conditions

line l !l&&r !l&&!r condition
369 0 0 0 $$self{'log_all_status'} || $response->getStatus != 0 && $response->getStatus != 1
0 0 0 $response->getType == 103 or $$req{'message_type'} == 6
430 0 0 0 defined $arg{'deny'} and $arg{'deny'} == 1000 or defined $arg{'allow'} and $arg{'allow'} != 1000 and not defined $arg{'deny'}
580 0 0 0 $type eq '' || $type eq $$self{'handles'}{$handle_no}->getType
727 0 0 0 not defined $filename or $$self{'no_symlinks'} and $$self{'FS'}->IsSymlink($filename)
909 0 0 0 not defined $filename or $$self{'no_symlinks'} and $$self{'FS'}->IsSymlink($filename)
981 0 0 0 not defined $filename or $$self{'no_symlinks'} and $$self{'FS'}->IsSymlink($filename)
1025 0 0 0 not defined $pathname or $$self{'no_symlinks'} and $$self{'FS'}->IsSymlink($pathname)
1106 0 0 0 not defined $filename or $$self{'no_symlinks'} and $$self{'FS'}->IsSymlink($filename)
1209 0 0 0 not defined $oldpath && defined $newpath or $$self{'no_symlinks'} and $$self{'FS'}->IsSymlink($oldpath)
1449 0 0 0 $errno == 2 or $errno == 20
0 0 0 $errno == 2 or $errno == 20 or $errno == 9
0 0 0 $errno == 2 or $errno == 20 or $errno == 9 or $errno == 40
0 0 0 $errno == 1 or $errno == 13
0 0 0 $errno == 1 or $errno == 13 or $errno == 14
0 0 0 $errno == 36 or $errno == 22