Branch Coverage

blib/lib/Chemistry/File/Formula.pm
Criterion Covered Total %
branch 31 38 81.5


line true false branch
204 0 16 if $format =~ s/(?
207 1 15 if ($opts{'formula_sort'}) { }
218 1 2 $n > 1 ? :
219 29 11 $n > 1 ? :
229 13 2 if ($formula_hash->{'C'}) { }
265 0 16 unless ParensBalanced($formula)
279 5 11 $formula =~ s/^(\d+\.?\d*)// ? :
292 15 20 if (defined $extract and $extract ne '') { }
294 13 2 if ($remainder =~ s/^(\d+\.?\d*)(.*)$/$2/) { }
301 10 5 if $prefix ne ''
304 4 11 if $remainder ne ''
312 20 0 if $remainder ne ''
322 0 30 unless $formula =~ /^(?:([A-Z][a-z]*)(\d+\.?\d*)?)+$/o
326 29 26 unless defined $count
327 18 37 if (defined $elements{$elm}) { }
348 12 12 if ($current =~ /[<({\[]/)
352 0 12 if scalar @stack == 0
353 0 12 if $current ne $pairs{pop @stack}
355 0 16 @stack ? :