blib/lib/Chemistry/File/SMILES.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 41 | 53 | 77.3 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
314 | 369 | 53 | 56 | $dig and $dig =~ /$digits_re/g |
330 | 28 | 0 | 0 | $$dig{'bnd'} and $$self{'digits'}{$$dig{'dig'}}{'bnd'} |
28 | 0 | 0 | $$dig{'bnd'} and $$self{'digits'}{$$dig{'dig'}}{'bnd'} and $$dig{'bnd'} ne $$self{'digits'}{$$dig{'dig'}}{'bnd'} | |
418 | 298 | 1 | 70 | $atom->attr('smiles/aromatic') and $atom->symbol =~ /^[CN]$/ |
610 | 7 | 266 | 95 | $$opts{'aromatic'} and $bond->aromatic |
618 | 7 | 312 | 95 | $$opts{'aromatic'} and $atom->aromatic |
622 | 393 | 6 | 8 | $$opts{'number'} and defined $atom->name |
632 | 14 | 1 | 0 | $charge and abs $charge > 1 |
640 | 7 | 0 | 8 | $$opts{'number'} and defined $atom->name |
line | l | !l | condition |
---|---|---|---|
156 | 111 | 0 | $opts{'mol_class'} || 'Chemistry::Mol' |
249 | 1 | 8 | $opts{'add_atom'} || \&add_atom |
1 | 8 | $opts{'add_bond'} || \&add_bond | |
295 | 3 | 10 | $hcnt || 0 |
2 | 11 | $chg || 0 | |
628 | 1 | 14 | $atom->formal_charge || '' |
629 | 0 | 15 | $atom->attr('smiles/isotope') || '' |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
334 | 0 | 0 | 28 | $$dig{'bnd'} || $$self{'digits'}{$$dig{'dig'}}{'bnd'} |
622 | 6 | 1 | 407 | not $ORGANIC_ELEMS{$atom->symbol} or $atom->formal_charge |
7 | 0 | 407 | not $ORGANIC_ELEMS{$atom->symbol} or $atom->formal_charge or $atom->total_hydrogens != $self->calc_implicit_hydrogens_2($atom) | |
1 | 0 | 407 | not $ORGANIC_ELEMS{$atom->symbol} or $atom->formal_charge or $atom->total_hydrogens != $self->calc_implicit_hydrogens_2($atom) or $$opts{'number'} and defined $atom->name |