Branch Coverage

blib/lib/Git/Mailmap.pm
Criterion Covered Total %
branch 52 66 78.7


line true false branch
70 2 18 if ($$for_committer{'proper-email'} eq $params{'email'}) { }
78 5 16 if ($$for_alias{'commit-email'} eq $params{'email'})
79 3 2 if (not defined $params{'name'}) { }
1 1 elsif (defined $params{'name'} and $params{'name'} eq $$for_alias{'commit-name'}) { }
94 4 14 if ($committer)
99 6 2 if (defined $committer)
120 4 40 if ($$for_committer{'proper-email'} eq $params{'proper-email'})
121 4 0 if ($params{'proper-name'})
128 0 4 if ($$for_alias{'commit-email'} eq $params{'commit-email'})
134 4 0 unless (defined $alias)
136 0 4 if ($params{'commit-name'})
145 18 4 unless (defined $committer)
147 14 4 if ($params{'proper-name'})
152 16 2 if ($params{'commit-email'})
154 8 8 if ($params{'commit-name'})
190 12 24 if defined $params{$_}
194 7 56 if defined $$committer{$_} and defined $params{$_} and $$committer{$_} eq $params{$_}
201 1 62 if defined $$alias{$_} and defined $params{$_} and $$alias{$_} eq $params{$_}
207 5 4 $found{$PROPER_EMAIL} != 0 && $found{$PROPER_NAME} != 0 && $found{$COMMIT_EMAIL} != 0 && $found{$COMMIT_NAME} != 0 ? :
245 0 0 if (defined $params{'all'} and $params{'all'} eq '1') { }
252 0 0 if ($$for_committer{'proper-email'} eq $params{'proper-email'} or not defined $params{'commit-email'}) { }
255 0 0 if (not defined $params{'commit-email'}) { }
266 0 0 if ($$for_alias{'commit-email'} eq $params{'commit-email'}) { }
289 1 2 unless (blessed $self)
308 17 2 unless ($row =~ /^[[:space:]]*\#/msx)
314 2 15 if ($row =~ /^([^<>]*)($EMAIL_ADDRESS_REGEXP)[[:space:]]*$/msx) { }
15 0 elsif ($row =~ /^(.*)($EMAIL_ADDRESS_REGEXP)(.+)($EMAIL_ADDRESS_REGEXP)[[:space:]]*$/msx) { }
334 14 3 if (length $proper_name > 0)
337 15 2 if (length $commit_email > 0)
340 6 11 if (length $commit_name > 0)
365 3 1 if (defined $$committer{'proper-name'})
371 4 0 if (scalar @{$aliases;} > 0) { }
375 2 3 if (defined $$alias{'commit-name'})