Branch Coverage

blib/lib/Git/DescribeVersion.pm
Criterion Covered Total %
branch 36 44 81.8


line true false branch
45 1216 32 ref $_[0] ? :
58 1231 2513 if ($opts{$mod})
62 1229 2 unless $opts{$mod} eq '1'
66 0 1231 if ($@)
78 1538 774 $$self{'format'} =~ /dot|normal|v|string/ ? :
80 769 1543 if $$self{'format'} =~ /no.?v/
89 0 2708 unless ($$self{'git'})
97 0 0 unless $$self{'git'}
106 0 7 if $$self{'directory'} and $$self{'directory'} ne '.'
110 3 7 ref $_ ? :
112 7 0 unless $^O eq 'MSWin32'
131 1 3 ref $_ ? :
152 2251 4953 ref $_ ? :
165 24 2282 unless defined $prefix
171 3 2303 unless (defined $prefix)
178 2297 6 if ($$self{'version_regexp'} and $prefix =~ /$$self{'version_regexp'}/)
187 2294 9 if version::is_lax($vstring)
192 9 2294 if (my $error = $@ || !$vobject)
205 0 9 unless $error
227 0 2255 if (my $error = $@)
233 450 1805 unless $ver
248 750 456 if /(count|in-pack): (\d+)/