Branch Coverage

blib/lib/Siffra/Transfers.pm
Criterion Covered Total %
branch 2 72 2.7


line true false branch
211 0 0 unless $configuration->{'fileNameRule'}
212 0 0 unless $configuration->{'remoteDirectory'}
213 0 0 unless ref $configuration->{'downloadedFiles'} eq 'HASH'
277 0 0 unless $self->testConfig
295 0 0 if ($@)
311 0 0 if ($self->{'connection'}) { }
313 0 0 if $self->{'config'}{'ssl'}
316 0 0 if (not $self->{'connection'}->login($user, $password)) { }
347 0 0 if ($@)
364 0 0 if $self->{'config'}{'debug'}
366 0 0 if $self->{'config'}{'identity_file'}
368 0 0 if ($self->{'config'}{'ssh_options'})
377 0 0 if ($@) { }
0 0 elsif ($self->{'connection'}->error) { }
416 0 0 $self->{'config'}{'activeDirectory'} ? :
441 0 0 unless $self->testConfig
453 0 0 if (ref $retorno->{$directory} eq 'HASH' and $retorno->{$directory}{'error'} == 0 and $directoryConfiguration->{'unpack'})
457 0 0 if (ref $file eq 'HASH' and $file->{'error'} == 0)
492 0 0 unless ($self->{'connection'}->cwd($remoteDirectory))
500 0 0 unless ($self->{'connection'}->binary)
510 0 0 if (not defined $remoteFiles and $self->{'connection'}->message =~ /No files found/u) { }
0 0 elsif (not defined $remoteFiles) { }
531 0 0 if ($status < 0)
551 0 0 if (not $get) { }
564 0 0 if $parameters{'only_one_file'}
568 0 0 if (scalar @{$retorno->{'downloadedFiles'};} == 0)
587 0 0 if $activeDownload->{'downloadedFiles'}{$fileName}
590 0 0 if (defined $activeDownload->{'fileNameRule'}) { }
593 0 0 unless $fileName =~ /$activeDownload->{'fileNameRule'}/u
633 0 0 if (scalar @{$ls;} > 0) { }
637 0 0 if $offset >= $size
668 0 0 if ($self->{'connection'}->error) { }
722 0 0 if (!$self->{'supportedMimeTypes'}{$mmt} == 0) { }
760 0 0 unless $_ =~ /inflating:\s(.+)$/u
774 0 1 if ${^GLOBAL_PHASE} eq 'DESTRUCT'
776 1 0 if (&blessed($self) and $self->isa('Siffra::Transfers')) { }