Branch Coverage

blib/lib/Siffra/Transfers.pm
Criterion Covered Total %
branch 2 68 2.9


line true false branch
206 0 0 unless $configuration->{'fileNameRule'}
207 0 0 unless $configuration->{'remoteDirectory'}
208 0 0 unless ref $configuration->{'downloadedFiles'} eq 'HASH'
271 0 0 unless $self->testConfig
289 0 0 if ($@)
305 0 0 if ($self->{'connection'}) { }
307 0 0 if $self->{'config'}{'ssl'}
310 0 0 if (not $self->{'connection'}->login($user, $password)) { }
341 0 0 if ($@)
359 0 0 if $self->{'config'}{'identity_file'}
360 0 0 if $self->{'config'}{'debug'}
365 0 0 if ($@) { }
0 0 elsif ($self->{'connection'}->error) { }
404 0 0 $self->{'config'}{'activeDirectory'} ? :
429 0 0 unless $self->testConfig
441 0 0 if (ref $retorno->{$directory} eq 'HASH' and $retorno->{$directory}{'error'} == 0 and $directoryConfiguration->{'unpack'})
445 0 0 if (ref $file eq 'HASH' and $file->{'error'} == 0)
480 0 0 unless ($self->{'connection'}->cwd($remoteDirectory))
488 0 0 unless ($self->{'connection'}->binary)
498 0 0 if (not defined $remoteFiles and $self->{'connection'}->message =~ /No files found/u) { }
0 0 elsif (not defined $remoteFiles) { }
518 0 0 if ($status < 0)
538 0 0 if (not $get) { }
551 0 0 if $parameters{'only_one_file'}
570 0 0 if $activeDownload->{'downloadedFiles'}{$fileName}
573 0 0 if (defined $activeDownload->{'fileNameRule'}) { }
576 0 0 unless $fileName =~ /$activeDownload->{'fileNameRule'}/u
616 0 0 if ($ls) { }
620 0 0 if $offset >= $size
650 0 0 if ($self->{'connection'}->error) { }
698 0 0 if (!$self->{'supportedMimeTypes'}{$mmt} == 0) { }
736 0 0 unless $_ =~ /inflating:\s(.+)$/u
750 0 1 if ${^GLOBAL_PHASE} eq 'DESTRUCT'
752 1 0 if (&blessed($self) and $self->isa('Siffra::Transfers')) { }