Branch Coverage

blib/lib/Bio/GFF3/LowLevel/Parser.pm
Criterion Covered Total %
branch 38 44 86.3


line true false branch
50 2 38 if ref $thing eq 'GLOB' or &Scalar::Util::blessed($thing) and $thing->can('getline')
51 0 38 unless CORE::open my $f, '<', $thing
73 2251 79 unless $self->_buffered_items_count
76 2294 34 if $self->_buffered_items_count
99 5100 167 if ($line =~ /^ \s* [^#\s>] /x) { }
133 34 elsif (my($hashsigns, $contents) = $line =~ /^ \s* (\#+) (.*) /x) { }
30 4 elsif ($line =~ /^ \s* $/x) { }
4 0 elsif ($line =~ /^ \s* > /x) { }
111 63 70 if (length $hashsigns == 3) { }
64 6 elsif (length $hashsigns == 2) { }
116 11 53 if ($$directive{'directive'} eq 'FASTA') { }
164 2197 3068 if $self->_buffered_items_count
194 0 130 if (grep %$_, values %{$$self{'under_construction_orphans'};})
205 2703 2562 unless defined $$self{'max_lookback'}
250 0 0 unless defined $id
295 2026 0 unless (@$ids or @$parents or @$derives)
304 27 1070 if (my $existing = $$self{'under_construction_by_id'}{$id}) { }
306 2 25 unless ($$existing[-1]{'type'} eq $$feature_line{'type'})
315 204 2 unless (@$parents or @$derives)
331 1068 2 unless my $references = $$self{'under_construction_orphans'}{$id}
350 2879 5 if (my $other_feature = $$self{'under_construction_by_id'}{$to_id}) { }
352 2861 18 unless (grep(($$self{'completed_references'}{$_}{$attrname}{$to_id}++), @$ids))