Branch Coverage

blib/lib/File/Copy/Undoable.pm
Criterion Covered Total %
branch 19 30 63.3


line true false branch
103 0 55 unless defined $source
105 0 55 unless defined $target
107 0 55 unless ref $rsync_opts eq 'ARRAY'
109 32 23 if ($tx_action eq 'check_state') { }
23 0 elsif ($tx_action eq 'fix_state') { }
110 2 30 unless file_exists($source)
113 30 0 unless ($args{-'tx_recovery'} or $args{-'tx_rollback'})
116 4 26 if $te
118 0 0 $te ? :
0 26 if $dry_run
121 0 26 $te ? :
130 1 22 if $?
131 11 11 if (defined $args{'target_owner'} or defined $args{'target_group'})
132 11 0 if ($> == 0) { }
140 0 11 if $?