Condition Coverage

blib/lib/Git/DescribeVersion.pm
Criterion Covered Total %
condition 14 27 51.8


and 3 conditions

line !l l&&!r l&&r condition
106 0 7 0 $$self{'directory'} and $$self{'directory'} ne '.'
178 0 6 2297 $$self{'version_regexp'} and $prefix =~ /$$self{'version_regexp'}/

or 2 conditions

line l !l condition
52 0 1248 $opts{'directory'} || '.'
115 5 2 $$self{'git_backticks'} ||= 'git'
167 2054 252 $count ||= 0

or 3 conditions

line l !l&&r !l&&!r condition
91 0 0 0 $$self{'git'} ||= eval { do { $self->$method('--version'); $method } }
137 3 0 0 $$self{'git_repository'} ||= do { require Git::Repository; 'Git::Repository'->new('work_tree', $$self{'directory'}) }
153 3929 0 0 $$self{'git_wrapper'} ||= do { require Git::Wrapper; 'Git::Wrapper'->new($$self{'directory'}) }
192 0 9 2294 $@ || !$vobject
214 1802 450 0 $self->version_from_describe || $self->version_from_count_objects