Branch Coverage

blib/lib/Perl/Critic/Git.pm
Criterion Covered Total %
branch 18 24 75.0


line true false branch
78 1 12 if not defined $file or $file eq ''
80 1 11 unless -e $file
82 1 10 if defined $level and not $level =~ /(?:gentle|5|stern|4|harsh|3|cruel|2|brutal|1)/x
114 3 0 unless (defined $self->{'authors'})
173 0 2 unless defined $author
192 2 2 unless $commit_attributes->{'author-mail'} eq $author
196 0 2 if defined $since and $commit_attributes->{'author-time'} < $since
282 0 15 if not defined $line_number && $line_number =~ /^\d+$/x or $line_number == 0
286 0 15 if $line_number > scalar @$blame_lines
321 18 7 if $self->_is_analyzed
345 7 0 defined $self->_get_critique_level ? :
372 8 29 if defined $value