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->symbols->{$symbol}[1] eq lc $string)
119 2 132 if ($string =~ /^\d+$/ and $self->symbols->{$symbol}[0] == $string or lc $self->symbols->{$symbol}[2] eq lc $string)
136 4 228 if ($string =~ /^\d+$/ and $self->symbols->{$symbol}[0] == $string or lc $self->symbols->{$symbol}[1] eq lc $string)
153 1 2 if (not $key =~ /^\d+$/ and length $key < 4) { }
159 96 2 unless $symbol eq $key