Branch Coverage

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


line true false branch
22 1 6 unless (defined $obj)
25 1 5 unless ($obj->isa('Wikibase::Datatype::Item'))
28 1 4 unless (defined $base_uri)
38 2 2 unless (exists $struct_hr->{'aliases'}{$alias->language})
59 1 3 if (defined $obj->id)
70 1 3 if (defined $obj->lastrevid)
75 1 3 if (defined $obj->modified)
80 3 1 if (defined $obj->ns)
85 1 3 if (defined $obj->page_id)
96 1 3 if (defined $obj->title)
106 2 3 if (not exists $struct_hr->{'type'} or $struct_hr->{'type'} ne 'item')
165 1 2 defined $struct_hr->{'id'} ? :
1 2 defined $struct_hr->{'lastrevid'} ? :
1 2 defined $struct_hr->{'modified'} ? :
2 1 defined $struct_hr->{'ns'} ? :
1 2 defined $struct_hr->{'pageid'} ? :
1 2 defined $struct_hr->{'title'} ? :