Condition Coverage

blib/lib/Chemistry/File/OPTIMADE.pm
Criterion Covered Total %
condition 9 26 34.6


and 3 conditions

line !l l&&!r l&&r condition
50 0 1 0 $json->{'meta'} and $json->{'meta'}{'api_version'}
1 0 0 $json->{'meta'} and $json->{'meta'}{'api_version'} and $json->{'meta'}{'api_version'} =~ /^[^01]\./
59 0 0 1 $json->{'meta'} and $json->{'meta'}{'query'}
0 0 1 $json->{'meta'} and $json->{'meta'}{'query'} and $json->{'meta'}{'query'}{'representation'}
70 0 0 1 &any(sub { $_ eq 'cartesian_site_positions'; } , @response_fields) && &any(sub { $_ eq 'species'; } , @response_fields) && &any(sub { $_ eq 'species_at_sites'; } , @response_fields)
82 0 0 1 ref $json->{'data'} eq "HASH" and $json->{'data'}{'attributes'}

or 2 conditions

line l !l condition
44 0 1 $opts{'mol_class'} || 'Chemistry::Mol'

or 3 conditions

line l !l&&r !l&&!r condition
45 0 1 0 $opts{'atom_class'} || $mol_class->atom_class
46 0 1 0 $opts{'bond_class'} || $mol_class->bond_class