Condition Coverage

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


and 3 conditions

line !l l&&!r l&&r condition
183 14 0 0 $last_name and $last_name eq $wantref
14 0 0 $last_name and $last_name eq $wantref and $name ne $wantref
243 0 0 46 defined $kind and defined $size
0 0 46 defined $kind and defined $size and defined $content
253 0 0 72 defined $kind and defined $size
0 0 72 defined $kind and defined $size and defined $content

or 3 conditions

line l !l&&r !l&&!r condition
73 3 5 0 $params->{'gitdir'} ||= dir($params->{'directory'}, '.git')
83 2 6 0 not defined $self->directory or -d $self->directory
157 0 0 0 file($file)->slurp || confess("Error reading ${file}: $!")
166 17 0 0 file($file)->slurp || confess("Error reading ${file}: $!")
181 14 0 0 $name ||= $last_name
230 46 72 0 $self->get_object_packed($sha1) || $self->get_object_loose($sha1)
352 1 0 0 $arguments{'gitdir'} || confess(q[init() needs either a 'directory' or a 'gitdir' argument])
399 5 0 0 $directory ||= $self->directory
400 0 5 0 $tree ||= $self->master->tree
452 29 0 0 $filename->openw || confess("Error opening to ${filename}: $!")