Condition Coverage

blib/lib/Git/PurePerl.pm
Criterion Covered Total %
condition 18 48 37.5


and 3 conditions

line !l l&&!r l&&r condition
209 14 0 0 $last_name and $last_name eq $wantref
14 0 0 $last_name and $last_name eq $wantref and $name ne $wantref
266 0 0 798 defined $kind and defined $size
0 0 798 defined $kind and defined $size and defined $content
276 0 0 68 defined $kind and defined $size
0 0 68 defined $kind and defined $size and defined $content

or 3 conditions

line l !l&&r !l&&!r condition
98 4 5 0 $$params{'gitdir'} ||= dir($$params{'directory'}, '.git')
108 2 7 0 not defined $self->directory or -d $self->directory
183 0 0 0 file($file)->slurp || confess("Error reading ${file}: $!")
192 16 0 0 file($file)->slurp || confess("Error reading ${file}: $!")
207 14 0 0 $name ||= $last_name
253 798 68 0 $self->get_object_packed($sha1) || $self->get_object_loose($sha1)
374 1 0 0 $arguments{'gitdir'} || confess(q[init() needs either a 'directory' or a 'gitdir' argument])
430 4 0 0 $directory ||= $self->directory
431 0 4 0 $tree ||= $self->master->tree
485 39 0 0 $filename->openw || confess("Error opening to ${filename}: $!")