Branch Coverage

blib/lib/RDF/RDFa/Generator/HTML/Head.pm
Criterion Covered Total %
branch 30 54 55.5


line true false branch
22 21 0 unless (&blessed($opts{'namespacemap'}) and $opts{'namespacemap'}->isa('URI::NamespaceMap'))
23 13 8 if (defined $opts{'namespaces'}) { }
31 0 21 if (defined $opts{'ns'})
60 0 21 unless @sites
69 13 0 ref $proto ? :
88 0 21 if UNIVERSAL::isa($html, 'XML::LibXML::Document')
97 8 0 ref $proto ? :
104 4 8 $st->object->is_literal ? :
113 0 12 if (defined $self->{'version'} and $self->{'version'} == 1.1 and $self->{'prefix_attr'}) { }
116 0 0 if (defined $self->{'namespacemap'}->rdfa)
128 8 0 if wantarray
140 0 21 if (defined $self->{'data_context'})
141 0 0 if (not &blessed($self->{'data_context'})) { }
0 0 elsif ($self->{'data_context'}->does('Attean::API::BlankOrIRI') or $self->{'data_context'}->isa('RDF::Trine::Node')) { }
156 0 0 if (defined $self->{'base'} and $st->subject->is_resource and $st->subject->abs eq $self->{'base'})
163 9 3 if ($st->subject->is_resource) { }
175 7 14 $st->object->is_literal ? :
177 0 21 if ($attr eq 'rel' and $st->predicate->abs =~ m[^http://www\.w3\.org/1999/xhtml/vocab\#
0 21 elsif ($attr eq 'rel' and $st->predicate->abs =~ m[^http://www\.w3\.org/1999/xhtml/vocab#(.*)$]) { }
0 42 elsif (defined $self->{'version'} and $self->{'version'} == 1.1) { }
208 0 21 if (defined $self->{'base'} and $st->subject->is_resource and $st->subject->abs eq $self->{'base'} and $st->object->is_resource) { }
0 21 elsif (defined $self->{'base'} and $st->object->is_resource and $st->object->abs eq $self->{'base'}) { }
12 9 elsif ($st->object->is_resource) { }
2 7 elsif ($st->object->is_blank) { }
236 7 0 if (defined $st->object->datatype) { }
251 7 67 unless (defined $curie)
257 0 74 unless (defined $curie)