Branch Coverage

lib/App/Followme/UploadSite.pm
Criterion Covered Total %
branch 21 60 35.0


line true false branch
51 0 0 unless chdir $self->{'top_directory'}
63 0 0 if $error
96 0 0 if ($hash->{$filename} eq 'dir') { }
102 0 0 if ($flag) { }
104 0 0 if $self->{'verbose'}
107 0 0 if $self->{'max_errors'} == 0
126 1 0 if (-e $hash_file)
149 0 0 if (-e $filename) { }
187 2 0 if ($page)
191 0 8 unless defined $value
243 0 2 if $self->{'quick_mode'}
250 2 0 if ($self->{'remote_url'})
284 6 0 if ($self->{'remote_url'})
289 6 0 if ($ext eq $self->{'web_extension'})
292 6 0 if ($page)
304 6 0 if ($self->{'upload'}->add_file($local_file, $remote_file)) { }
308 0 0 if $self->{'max_errors'} == 0
313 6 0 if $file ne $local_file
327 1 1 if ($folder ne $self->{'top_directory'})
329 1 0 if exists $local->{$folder}
331 1 0 if (not exists $hash->{$folder} or $hash->{$folder} ne "dir")
334 1 0 if ($self->{'upload'}->add_directory($folder)) { }
336 0 1 if $self->{'verbose'}
339 0 0 if $self->{'max_errors'} == 0
352 0 6 if ($self->{'quick_update'})
353 0 0 if $self->{'target_date'} > fio_get_date($filename)
357 6 0 if exists $local->{$file}
363 6 0 if (not exists $hash->{$file} or $hash->{$file} ne $value)
364 6 0 if ($self->update_file($filename))
366 0 6 if $self->{'verbose'}