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 20 exists $struct_hr->{'type'} && defined $struct_hr->{'type'}

or 3 conditions

line l !l&&r !l&&!r condition
42 2 1 19 not exists $struct_hr->{'type'} && defined $struct_hr->{'type'} or $struct_hr->{'type'} ne "wikibase-entityid"
3 1 18 not exists $struct_hr->{'type'} && defined $struct_hr->{'type'} or $struct_hr->{'type'} ne "wikibase-entityid" or not exists $struct_hr->{'value'}
2 1 17 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 16 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 15 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"