Branch Coverage

blib/lib/Chemistry/File/CML.pm
Criterion Covered Total %
branch 10 28 35.7


line true false branch
57 0 1 unless (@cml_molecules)
66 1 0 if $molecule->hasAttribute("id")
69 0 1 unless $atomArray
79 0 1 unless $element->hasAttribute("id")
83 1 0 if ($element->hasAttribute("elementType"))
86 0 1 if ($element->hasAttribute("formalCharge"))
89 0 1 if ($element->hasAttribute("hydrogenCount"))
92 0 1 if ($element->hasAttribute("isotopeNumber"))
95 1 0 if ($element->hasAttribute("x3") and $element->hasAttribute("y3") and $element->hasAttribute("z3"))
106 0 1 if ($bondArray)
113 0 0 unless $order =~ /^[123]$/
116 0 0 $type eq 'A' ? :
127 0 0 if ($explicit_hydrogens > $hydrogens_by_id{$id})
132 0 0 if $explicit_hydrogens == $hydrogens_by_id{$id}