Branch Coverage

blib/lib/Git/Hook/PostReceive.pm
Criterion Covered Total %
branch 42 52 80.7


line true false branch
15 1 4 $args{'utf8'} ? :
21 6 0 @_ ? :
27 2 4 if (wantarray) { }
34 1 1 wantarray ? :
40 0 22 if $$self{'git_dir'}
41 0 22 if $$self{'work_tree'}
49 0 0 if ($before ne '0000000000000000000000000000000000000000') { }
55 0 0 if ($after ne '0000000000000000000000000000000000000000') { }
66 0 6 if $$self{'git_dir'}
67 0 6 if $$self{'work_tree'}
74 0 6 unless $before and $after and $ref
77 3 3 if ($before ne '0000000000000000000000000000000000000000') { }
85 5 1 if ($after ne '0000000000000000000000000000000000000000') { }
111 2 4 if ($before ne '0000000000000000000000000000000000000000' and $after ne '0000000000000000000000000000000000000000') { }
3 1 elsif ($after ne '0000000000000000000000000000000000000000') { }
120 1 5 unless $log_string
130 2 7 if $$self{'utf8'}
141 9 93 if (/^commit (.*)$/iu) { }
9 84 elsif (/^author:\s+(.*?)\s<(.*?)>/iu) { }
9 75 elsif (/^commit:\s+(.*?)\s<(.*?)>/iu) { }
9 66 elsif (/^authordate:\s+(.*)$/iu) { }
1 65 elsif (/^merge: (\w+)\s+(\w+)/iu) { }
13 52 elsif (/^A\t(.+)/u) { }
4 48 elsif (/^D\t(.+)/u) { }
5 43 elsif (/^M\t(.+)/u) { }
17 26 elsif (/^ (.*)/u) { }