Branch Coverage

blib/lib/RDF/Simple/Serialiser.pm
Criterion Covered Total %
branch 20 24 83.3


line true false branch
146 0 19 if ($qn ne $$t[0])
153 4 4 if ($class) { }
167 5 3 if ($self->_looks_like_uri($id) or $self->_looks_like_legal_id($id) or $id =~ /^[#:]/ and $self->_looks_like_legal_id(substr($id, 1))) { }
187 4 15 if $$statement[1] eq 'rdf:type'
190 1 14 if (ref $obj) { }
0 14 elsif ($obj =~ /^$pref/) { }
0 14 elsif ($self->_looks_like_uri($obj) or $self->_looks_like_legal_id($obj) or $obj =~ /^[#:]/ and $self->_looks_like_legal_id(substr($obj, 1))) { }
284 3 1 if (ref $_[0] eq 'HASH') { }
317 40 4 if $self->{'_rdfns'}
324 27 5 if (defined $uri and not $uri =~ /^http/)
326 27 0 if $pref
354 5 3 if ($object->{'Uri'}) { }