Condition Coverage

blib/lib/Chemistry/File.pm
Criterion Covered Total %
condition 16 27 59.2


and 3 conditions

line !l l&&!r l&&r condition
421 1 0 3 defined $s and length $s
480 0 13 2 not defined $self->{'opts'}{'gzip'} and $file =~ /.gz$/
535 1 36 6 $fh and $self->mode eq '>'
37 4 2 $fh and $self->mode eq '>' and $self->{'opts'}{'gzip'}

or 2 conditions

line l !l condition
476 30 0 $mode ||= '<'
499 2 2 $self->{'opts'}{'gzip'} ||= 1
536 2 0 $self->{'opts'}{'gzip'} || 6

or 3 conditions

line l !l&&r !l&&!r condition
185 0 0 0 ref $self || $self
202 0 0 0 ref $self || $self
480 2 0 15 $self->{'opts'}{'gzip'} or not defined $self->{'opts'}{'gzip'} and $file =~ /.gz$/