Condition Coverage

blib/lib/Text/BibTeX/Entry.pm
Criterion Covered Total %
condition 29 54 53.7


and 3 conditions

line !l l&&!r l&&r condition
221 6 105 0 scalar @source and ref $source[0] eq 'HASH'
224 111 0 0 exists $opts->{'binmode'} and $opts->{'binmode'} =~ /utf-?8/i
231 15 6 84 @source == 1 and ref $source[0]
21 0 84 @source == 1 and ref $source[0] and $source[0]->isa('Text::BibTeX::File')
0 0 15 defined $source[0] and not ref $source[0]
6 0 15 @source == 2 and (defined $source[0] and not ref $source[0])
0 15 0 @source == 2 and (defined $source[0] and not ref $source[0]) and !defined($source[1]) || fileno $source[1] >= 0
0 0 6 @source == 1 and not ref $source[0]
381 0 38 88 not defined $preserve and defined $self->{'file'}
38 0 88 not defined $preserve and defined $self->{'file'} and $self->{'file'}->isa('Text::BibTeX::File')
683 6 0 14 $self->{'file'} && $self->{'file'}{'filename'}
693 4 0 10 $self->{'file'} && $self->{'file'}{'filename'}

or 2 conditions

line l !l condition
672 0 20 $delim ||= 'and'
673 0 20 $desc ||= 'name'
877 3 0 $handle ||= \*STDOUT
918 4 0 $self->{'type'} || ''
4 0 $self->{'key'} || ''
923 0 0 $self->{'type'} || ''

or 3 conditions

line l !l&&r !l&&!r condition
209 0 111 0 ref $class || $class
231 10 5 0 !defined($source[1]) || fileno $source[1] >= 0