Branch Coverage

blib/lib/File/Patch/Undoable.pm
Criterion Covered Total %
branch 20 28 71.4


line true false branch
101 0 150 unless defined $file
103 0 150 unless defined $patch
106 0 150 unless _check_patch_has_dry_run_option()
118 86 64 if ($tx_action eq 'check_state') { }
64 0 elsif ($tx_action eq 'fix_state') { }
119 4 82 unless $exists
120 2 80 if $is_sym or not $is_file
121 2 78 unless $patch_exists
122 2 76 unless $patch_is_file
128 10 66 if (not $?) { }
66 0 elsif ($? >> 8 == 1) { }
131 0 66 if $dry_run
150 0 64 if ($?)
156 0 64 unless (rename $tmpname, $file)