Branch Coverage

blib/lib/Bio/Phylo.pm
Criterion Covered Total %
branch 43 76 56.5


line true false branch
31 0 556 if (@_)
34 0 0 if ($key =~ qr/^VERBOSE$/i) { }
0 0 elsif ($key =~ qr/^COMPAT$/i) { }
145 0 13384 if (my $reference = ref $class)
162 2950 10434 if (@_ and @_ = &looks_like_hash(@_))
177 0 5804 if ($key eq '-verbose')
197 0 5804 if ($@)
198 0 0 if (&blessed($@) and $@->can('rethrow')) { }
0 0 elsif (not ref $@ and $@ =~ /^Can't locate object method /) { }
218 12548 836 if (ref $self ne 'Bio::Phylo::NeXML::Writable' and not $self->isa('Bio::Phylo::Matrices::Datatype'))
250 0 109 if (defined $guid) { }
275 2 109 if (defined $desc) { }
303 0 109 if (defined $score) { }
304 0 0 unless (&looks_like_number($score))
349 1664 577 unless (defined $generic{$id} and @_)
354 2241 0 if (@_)
358 128 2113 if (scalar @_ == 1 and &looks_like_instance($_[0], 'HASH')) { }
458 64 2996 unless (defined $generic{$id})
463 2951 109 if (defined $key) { }
465 0 2951 if (ref $key eq 'ARRAY') { }
555 6 103 unless defined $deep
566 108 1 if ($deep)
575 115 0 unless ($seen{$setter_name})
582 30 85 if (ref $output eq 'ARRAY') { }
56 58 elsif ($output and ref $output) { }
584 43 80 ref $_ ? :
603 1737 115 unless ($seen{$setter_name})
653 13384 0 if (defined($id = $self->get_id))
665 87137 37067 if ($class->can($cleanup))
686 13384 0 if (defined $id)
733 19943 0 if (&blessed($container)) { }
734 19943 0 if ($container->can('can_contain')) { }
735 19943 0 if ($container->can_contain($self)) { }
736 19943 0 if ($container->contains($self)) { }
774 0 0 if &looks_like_class('JSON')
779 0 0 if $self->get_guid
780 0 0 if $self->get_desc
781 0 0 if $self->get_score