Branch Coverage

blib/lib/Wikibase/Datatype/Struct/Value/Item.pm
Criterion Covered Total %
branch 6 6 100.0


line true false branch
18 1 21 unless (defined $obj)
21 1 20 unless ($obj->isa("Wikibase::Datatype::Value::Item"))
42 2 15 if (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")