Branch Coverage

blib/lib/Chemistry/File/OPTIMADE.pm
Criterion Covered Total %
branch 8 18 44.4


line true false branch
50 0 1 if ($json->{'meta'} and $json->{'meta'}{'api_version'} and $json->{'meta'}{'api_version'} =~ /^[^01]\./)
59 1 0 if ($json->{'meta'} and $json->{'meta'}{'query'} and $json->{'meta'}{'query'}{'representation'})
62 1 0 if ($json->{'meta'}{'query'}{'representation'} =~ /\?/) { }
65 1 0 if ($query->{'response_fields'}) { }
79 0 1 unless $json->{'data'}
82 1 0 if (ref $json->{'data'} eq 'HASH' and $json->{'data'}{'attributes'}) { }
0 0 elsif (ref $json->{'data'} eq 'ARRAY') { }
97 0 1 if (&any(sub { not exists $attributes->{$_}; } , @mandatory_fields))
112 0 1 if (exists $species->{'mass'})