Condition Coverage

blib/lib/Git/Repository.pm
Criterion Covered Total %
condition 20 28 71.4


and 3 conditions

line !l l&&!r l&&r condition
218 61 0 12 ref $_ && ref $_ eq 'HASH'
57 0 6 ref $_ && ref $_ eq 'HASH'
44 0 3 ref $_ && ref $_ eq 'HASH'
37 0 6 ref $_ && ref $_ eq 'HASH'
49 0 6 ref $_ && ref $_ eq 'HASH'
32 0 6 ref $_ && ref $_ eq 'HASH'

or 2 conditions

line l !l condition
73 22 32 shift @o || {}
155 41 2 eval { do { _abs_path($self->run('rev-parse', '--git-dir'), $cwd) } } || ''

or 3 conditions

line l !l&&r !l&&!r condition
96 22 1 0 -d ($git_dir = _abs_path($git_dir, $cwd)) or croak("directory not found: $git_dir")
99 16 1 0 -d ($work_tree = _abs_path($work_tree, $cwd)) or croak("directory not found: $work_tree")