Condition Coverage

blib/lib/Backup/Snapback.pm
Criterion Covered Total %
condition 27 94 28.7


and 3 conditions

line !l l&&!r l&&r condition
433 91 20 0 $None{$parm} and lc $val eq 'none'
460 0 4 0 $rsync_sh and lc $rsync_sh ne 'none'
4 0 0 $rsync_sh and lc $rsync_sh ne 'none' and lc $rsync_sh ne 'rsync'
464 0 0 4 $self->config(-'chargefile') and not $self->config(-'RsyncVerbose')
753 4 0 0 $maxbackups == 1 and $rotate_all == 0
792 0 0 0 $maxbackups == 1 and $rotate_all == 0
903 0 4 0 @destlist = $self->config(-'DestinationList') and $destlist[0]
4 0 0 @destlist = $self->config(-'DestinationList') and $destlist[0] and lc $destlist[0] ne 'none'
991 0 4 0 not $self->config(-'force') and $self->config(-'Before') || $self->config(-'After')
1070 0 4 0 not $self->config(-'force') and $self->config(-'AutoTime')
1136 0 0 0 $yday - $backup_date_weekly < 0 and $yday + 365 - $backup_date_weekly > 7
1151 0 0 0 $yday - $backup_date_monthly < 0 and $yday + 365 - $backup_date_monthly > 30
1220 4 0 0 not $many_files || $retain and -d "$backupdir.0"
1227 0 0 4 $retain and -d "$backupdir.1"
1237 0 0 0 $rsh eq 'rsync' and $host =~ /:\d+$/
1301 0 0 0 $self->config(-'IgnoreVanished') and $stat == 24

or 2 conditions

line l !l condition
363 4 33 $true{$val} || 0
497 11 1 $$self{'_fd'} ||= {}
558 0 1 $$self{'_tmpfiles'} ||= []
915 0 0 (stat "$backupdir.0")[9] || 0
974 4 0 (stat "$backupdir.0")[9] || 0
979 4 0 (stat "$backupdir_weekly.0")[9] || 0
984 4 0 (stat "$backupdir_monthly.0")[9] || 0
1071 0 0 $hr_backup || 1

or 3 conditions

line l !l&&r !l&&!r condition
241 0 0 0 $self->config(-'debuglog') || $self->config(-'debugfile')
395 0 151 0 $$self{'_client_config'} || $$self{'_config'}
396 151 0 0 $$self{'_cfg'} || $$self{'_maincfg'}
870 0 4 0 $self->config(-'backuphost') || $client
871 0 4 0 $dir ||= $$self{'_directory'}
991 0 0 4 $self->config(-'Before') || $self->config(-'After')
1136 0 0 0 $yday - $backup_date_weekly > 7 or $yday - $backup_date_weekly < 0 and $yday + 365 - $backup_date_weekly > 7
1151 0 0 0 $yday - $backup_date_monthly > 30 or $yday - $backup_date_monthly < 0 and $yday + 365 - $backup_date_monthly > 30
1220 0 4 0 $many_files || $retain
1237 0 4 0 not $rsh or $rsh eq 'none'