Branch Coverage

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


line true false branch
157 1 1 if (ref $i) { }
160 0 1 unless $atom = $self->atoms($i)
172 0 7 unless my $index = $self->get_atom_index($atom)
194 1 24 if ($$bond{'deleted'})
240 14 28 if $_ eq $bond
250 7 5 if $_ eq $atom
268 11 0 if (ref $i) { }
271 0 0 unless $bond = $self->bonds($i)
280 0 14 unless my $index = $self->get_bond_index($bond)
317 18 72 if (@_) { }
337 0 1 wantarray ? :
374 6 43 if (@_) { }
396 19 0 if ($opts{'format'})
454 0 0 $1 ? :
488 14 0 if ($opts{'format'}) { }
524 3 8 if ($opts{'format'}) { }
528 8 0 if ($self->formats($type)->file_is($fname))
554 2 1 if ($opts{'format'}) { }
558 1 0 if ($self->formats($type)->name_is($fname))
601 0 1 if ($opts{'format'}) { }
606 1 0 if ($self->formats($type)->file_is($file))
631 4 11 if (@_ == 1)
648 58 10 if (@_) { }
651 0 58 unless ($file_class)
686 0 0 if (@_) { }
690 0 0 if defined $$self{'charge'}
709 0 538 if $atom->hydrogens
738 0 8 if 'Storable'->VERSION < 2.14
789 0 0 if ($other->isa('Chemistry::Mol')) { }
0 0 elsif ($other->isa('Chemistry::Atom')) { }
0 0 elsif ($other->isa('Math::VectorReal')) { }
791 0 0 unless my $atom = shift @atoms
796 0 0 if ($d < $min_length)
801 0 0 wantarray ? :
826 1 1 if (ref $self) { }
861 6 2 if defined $$self{'_paint_tab'}{$atom->id}
880 6 8 if defined $$self{'_paint_tab'}{$atom->id}
965 0 1 unless my $sub = $DESCRIPTORS{$descriptor}