Branch Coverage

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


line true false branch
48 23 4 builtin::blessed($thingy) ? :
51 8 19 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 16 11 unless @_
242 7 4 unless (_is_Z($data))
257 10 10 unless @_
260 6 4 unless (_is_name($data))
275 10 11 unless @_
278 6 5 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 12 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 15 defined $_[0] ? :
358 2 35 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 23 4 if exists $elements{$symbol}
404 24 46 exists $Chemistry::Elements::names_to_Z{lc shift()} ? :
410 30 56 exists $elements{$symbol} ? :
414 164 73 if $_[0] =~ /^[123456789]\d*\z/
425 77 42 if $_[0] =~ /^[a-z]/i
452 10 56 unless ref $self
458 20 36 if ($data) { }
20 16 elsif (defined $self->{$method_name}) { }