Branch Coverage

blib/lib/Chemistry/Elements.pm
Criterion Covered Total %
branch 72 72 100.0


line true false branch
48 11 4 &blessed($thingy) ? :
51 8 7 unless exists $method_hash->{$method}
228 1 15 if (_is_Z($data)) { }
5 10 elsif (_is_symbol($data)) { }
4 6 elsif (_is_name($data)) { }
239 22 8 unless @_
242 6 2 unless (_is_Z($data))
257 11 9 unless @_
260 4 5 unless (_is_name($data))
275 11 10 unless @_
278 4 6 unless (_is_symbol($data))
295 1 11 if _is_Z($thingy)
296 2 9 if _is_name($thingy)
299 1 8 if _is_symbol($thingy)
308 4 8 unless _is_name($name)
316 4 11 unless _is_Z($_[0])
323 6 11 defined $_[0] ? :
327 3 14 if _is_symbol($thingy)
328 3 11 if _is_Z($thingy)
331 3 8 if (_is_name($thingy))
345 4 12 unless _is_symbol($symbol)
347 9 3 defined $_[0] ? :
356 22 14 defined $_[0] ? :
358 2 34 unless _is_Z($Z)
368 2 11 if ref $thingy
372 1 10 if _is_symbol($thingy)
373 1 9 if _is_name($thingy)
376 1 8 if _is_Z($thingy)
392 24 4 if exists $elements{$symbol}
404 25 44 exists $Chemistry::Elements::names_to_Z{lc shift()} ? :
410 31 54 exists $elements{$symbol} ? :
414 160 72 if $_[0] =~ /^[123456789]\d*\z/
425 79 41 if $_[0] =~ /^[a-z]/i
452 10 32 unless ref $self
458 15 17 if ($data) { }
1 16 elsif (defined $self->{$method_name}) { }