Branch Coverage

blib/lib/Chemistry/Mol.pm
Criterion Covered Total %
branch 44 80 55.0


line true false branch
158 1 1 if (ref $i) { }
161 0 1 unless $atom = $self->atoms($i)
173 0 7 unless my $index = $self->get_atom_index($atom)
195 1 24 if ($bond->{'deleted'})
241 14 28 if $_ eq $bond
251 7 5 if $_ eq $atom
269 11 0 if (ref $i) { }
272 0 0 unless $bond = $self->bonds($i)
281 0 14 unless my $index = $self->get_bond_index($bond)
318 18 72 if (@_) { }
338 0 1 wantarray ? :
375 6 43 if (@_) { }
397 19 0 if ($opts{'format'})
455 0 0 $1 ? :
489 14 0 if ($opts{'format'}) { }
525 3 8 if ($opts{'format'}) { }
529 8 0 if ($self->formats($type)->file_is($fname))
555 2 1 if ($opts{'format'}) { }
559 1 0 if ($self->formats($type)->name_is($fname))
602 0 1 if ($opts{'format'}) { }
607 1 0 if ($self->formats($type)->file_is($file))
632 3 11 if (@_ == 1)
649 58 10 if (@_) { }
652 0 58 unless ($file_class)
687 0 0 if (@_) { }
691 0 0 if defined $self->{'charge'}
710 0 538 if $atom->hydrogens
744 8 1 if ($clone_backend eq 'Storable') { }
1 0 elsif ($clone_backend eq 'Clone') { }
746 0 8 if "Storable"->VERSION < "2.14"
803 0 0 if ($other->isa('Chemistry::Mol')) { }
0 0 elsif ($other->isa('Chemistry::Atom')) { }
0 0 elsif ($other->isa('Math::VectorReal')) { }
805 0 0 unless my $atom = shift @atoms
810 0 0 if ($d < $min_length)
815 0 0 wantarray ? :
840 1 1 if (ref $self) { }
875 6 2 if defined $self->{'_paint_tab'}{$atom->id}
894 6 8 if defined $self->{'_paint_tab'}{$atom->id}
979 0 1 unless my $sub = $DESCRIPTORS{$descriptor}