Branch Coverage

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


line true false branch
21 1 5 unless (defined $obj)
24 1 4 unless ($obj->isa("Wikibase::Datatype::Property"))
27 1 3 unless (defined $base_uri)
37 1 1 unless (exists $struct_hr->{'aliases'}{$alias->language})
61 1 2 if (defined $obj->id)
72 1 2 if (defined $obj->lastrevid)
77 1 2 if (defined $obj->modified)
82 2 1 if (defined $obj->ns)
87 1 2 if (defined $obj->page_id)
92 1 2 if (defined $obj->title)
102 2 3 if (not exists $struct_hr->{'type'} or $struct_hr->{'type'} ne "property")
153 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'} ? :