Branch Coverage

blib/lib/Catmandu/VIAF/API/Extract.pm
Criterion Covered Total %
branch 0 34 0.0


line true false branch
18 0 0 if ($self->is_person($description->{'rdf:type'}) == 1)
23 0 0 if (ref $person ne 'HASH')
41 0 0 if (ref $description->{'skos:prefLabel'} ne 'ARRAY')
45 0 0 if (exists $label->{'xml:lang'}) { }
46 0 0 if ($label->{'xml:lang'} eq $self->lang)
50 0 0 if ($label->{'xml:lang'} eq $self->fallback_lang)
58 0 0 if (defined $prefLabel) { }
0 0 elsif (defined $prefLabel_fallback) { }
73 0 0 if (ref $description->{'schema:name'} ne 'ARRAY')
77 0 0 if (exists $s_name->{'xml:lang'}) { }
78 0 0 if ($s_name->{'xml:lang'} eq $self->lang)
82 0 0 if ($s_name->{'xml:lang'} eq $self->fallback_lang)
89 0 0 if (defined $name) { }
0 0 elsif (defined $name_fallback) { }
101 0 0 unless (defined $name)
109 0 0 if (ref $rdf_types ne 'ARRAY')
113 0 0 if ($rdf_type->{'rdf:resource'} eq 'http://schema.org/Person')