Branch Coverage

blib/lib/Chemistry/Mol.pm
Criterion Covered Total %
branch 41 76 53.9


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
739 0 8 if 'Storable'->VERSION < 2.14
790 0 0 if ($other->isa('Chemistry::Mol')) { }
0 0 elsif ($other->isa('Chemistry::Atom')) { }
0 0 elsif ($other->isa('Math::VectorReal')) { }
792 0 0 unless my $atom = shift @atoms
797 0 0 if ($d < $min_length)
802 0 0 wantarray ? :
827 1 1 if (ref $self) { }
862 6 2 if defined $self->{'_paint_tab'}{$atom->id}
881 6 8 if defined $self->{'_paint_tab'}{$atom->id}
966 0 1 unless my $sub = $DESCRIPTORS{$descriptor}