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 55 0 6 ref $_ && ref $_ eq 'HASH'
38 0 6 ref $_ && ref $_ eq 'HASH'
43 0 12 ref $_ && ref $_ eq 'HASH'
46 0 3 ref $_ && ref $_ eq 'HASH'
50 0 6 ref $_ && ref $_ eq 'HASH'
48 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")