Branch Coverage

lib/Git/Lint/Check/Commit.pm
Criterion Covered Total %
branch 24 26 92.3


line true false branch
35 1 2 if ($exit and $stderr)
39 1 1 if ($stdout) { }
58 1 1 if $exit
74 3 11 unless defined $args->{$_}
87 1 8 if ($line =~ m[^diff --git a/(.*) b/\1$])
105 3 11 unless defined $args->{$_}
109 1 1 unless ref $args->{'match'} eq "CODE"
117 1 8 if ($ret)
122 1 7 if ($line =~ /^\@@ -\S+ \+(\d+)/)
127 0 7 if ($line =~ /^ /)
132 2 5 if ($line =~ /^--- / or $line =~ /^\+\+\+ /)
137 2 3 if ($line =~ s/^\+//)
141 2 0 if ($args->{'match'}->($line))