Condition Coverage

blib/lib/Wikibase/Datatype/Struct/Value/Item.pm
Criterion Covered Total %
condition 18 18 100.0


and 3 conditions

line !l l&&!r l&&r condition
42 1 1 16 exists $struct_hr->{'type'} && defined $struct_hr->{'type'}

or 3 conditions

line l !l&&r !l&&!r condition
42 2 1 15 not exists $struct_hr->{'type'} && defined $struct_hr->{'type'} or $struct_hr->{'type'} ne 'wikibase-entityid'
3 1 14 not exists $struct_hr->{'type'} && defined $struct_hr->{'type'} or $struct_hr->{'type'} ne 'wikibase-entityid' or not exists $struct_hr->{'value'}
2 1 13 not exists $struct_hr->{'type'} && defined $struct_hr->{'type'} or $struct_hr->{'type'} ne 'wikibase-entityid' or not exists $struct_hr->{'value'} or not exists $struct_hr->{'value'}{'entity-type'}
2 1 12 not exists $struct_hr->{'type'} && defined $struct_hr->{'type'} or $struct_hr->{'type'} ne 'wikibase-entityid' or not exists $struct_hr->{'value'} or not exists $struct_hr->{'value'}{'entity-type'} or not defined $struct_hr->{'value'}{'entity-type'}
2 1 11 not exists $struct_hr->{'type'} && defined $struct_hr->{'type'} or $struct_hr->{'type'} ne 'wikibase-entityid' or not exists $struct_hr->{'value'} or not exists $struct_hr->{'value'}{'entity-type'} or not defined $struct_hr->{'value'}{'entity-type'} or $struct_hr->{'value'}{'entity-type'} ne 'item'