Branch Coverage

blib/lib/Chemistry/PeriodicTable.pm
Criterion Covered Total %
branch 17 20 85.0


line true false branch
39 0 5 unless $file and -e $file
55 0 2 unless open my $fh, "<", $file
64 2 236 if $counter == 1
84 0 2 unless open my $fh, "<", $file
101 1 1 if (length $string < 4) { }
106 1 117 if (lc $self->data->{$symbol}[1] eq lc $string)
119 2 14 if ($string =~ /^\d+$/ and $self->data->{$symbol}[0] == $string or lc $self->data->{$symbol}[2] eq lc $string)
136 4 67 if ($string =~ /^\d+$/ and $self->data->{$symbol}[0] == $string or lc $self->data->{$symbol}[1] eq lc $string)
153 1 2 if (not $key =~ /^\d+$/ and length $key < 4) { }
159 53 2 unless $symbol eq $key