Branch Coverage

blib/lib/Wikibase/Datatype/Struct/Mediainfo.pm
Criterion Covered Total %
branch 32 32 100.0


line true false branch
20 1 6 unless (defined $obj)
23 1 5 unless ($obj->isa('Wikibase::Datatype::Mediainfo'))
26 1 4 unless (defined $base_uri)
49 1 3 if (defined $obj->id)
60 1 3 if (defined $obj->lastrevid)
65 1 3 if (defined $obj->modified)
70 3 1 if (defined $obj->ns)
75 1 3 if (defined $obj->page_id)
80 1 3 if (defined $obj->title)
90 2 3 if (not exists $struct_hr->{'type'} or $struct_hr->{'type'} ne 'mediainfo')
129 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'} ? :