Branch Coverage

blib/lib/Chemistry/Mol.pm
Criterion Covered Total %
branch 46 78 58.9


line true false branch
159 1 1 if (ref $i) { }
162 0 1 unless $atom = $self->atoms($i)
174 0 7 unless my $index = $self->get_atom_index($atom)
196 1 24 if ($bond->{'deleted'})
242 14 28 if $_ eq $bond
252 7 5 if $_ eq $atom
270 11 0 if (ref $i) { }
273 0 0 unless $bond = $self->bonds($i)
282 0 14 unless my $index = $self->get_bond_index($bond)
319 18 75 if (@_) { }
339 0 1 if (wantarray) { }
376 6 44 if (@_) { }
398 19 0 if ($opts{'format'})
456 0 0 $1 ? :
490 14 0 if ($opts{'format'}) { }
526 5 10 if ($opts{'format'}) { }
530 9 1 if ($self->formats($type)->file_is($fname))
556 2 2 if ($opts{'format'}) { }
560 1 1 if ($self->formats($type)->name_is($fname))
603 0 1 if ($opts{'format'}) { }
608 1 0 if ($self->formats($type)->file_is($file))
633 3 11 if (@_ == 1)
650 64 13 if (@_) { }
653 1 63 unless ($file_class)
688 0 0 if (@_) { }
692 0 0 if defined $self->{'charge'}
711 0 538 if $atom->hydrogens
745 8 1 if ($clone_backend eq 'Storable') { }
1 0 elsif ($clone_backend eq 'Clone') { }
747 0 8 if "Storable"->VERSION < "2.14"
804 0 0 if ($other->isa('Chemistry::Mol')) { }
0 0 elsif ($other->isa('Chemistry::Atom')) { }
0 0 elsif ($other->isa('Math::VectorReal')) { }
806 0 0 unless my $atom = shift @atoms
811 0 0 if ($d < $min_length)
816 0 0 wantarray ? :
841 1 1 if (ref $self) { }
897 6 2 if exists $map{$colors{$atom->id}}
992 1 1 unless my $sub = $DESCRIPTORS{$descriptor}