Branch Coverage

blib/lib/App/GitHooks/Plugin/PreventTrailingWhitespace.pm
Criterion Covered Total %
branch 8 14 57.1


line true false branch
87 0 4 if $git_action eq 'D'
91 0 4 if $staged_changes->is_merge
95 0 4 if $staged_changes->is_revert
100 4 0 if ($git_action eq 'A') { }
128 0 0 unless $$commit_attributes{'author-mail'} eq 'not.committed.yet'
145 14 3 unless defined $trailing_whitespace
156 3 1 if scalar @whitespace_violations != 0