Branch Coverage

blib/lib/RDF/Trine/Node/Resource.pm
Criterion Covered Total %
branch 42 54 77.7


line true false branch
61 0 15844 unless (defined $uri)
65 2785 13059 if (defined $base_uri)
66 1060 1725 if (&blessed($base_uri)) { }
67 975 85 if ($base_uri->isa('RDF::Trine::Node::Resource'))
78 0 15844 if ($uri eq &RDF::Trine::NIL_GRAPH)
82 0 15844 if ($uri =~ /([<>" {}|\\^`])/)
119 1 686 if (@_)
137 2 36142 if ($context)
143 1 1 if (index($uri, $v) == 0)
151 27507 8636 if ($sse{$ra}) { }
187 204 3100 if ($ntriples{$ra}) { }
197 0 107571 if ($o < 8) { }
0 107571 elsif ($o == 9) { }
0 107571 elsif ($o == 10) { }
0 107571 elsif ($o < 12) { }
0 107571 elsif ($o == 13) { }
0 107571 elsif ($o < 31) { }
0 107571 elsif ($o < 33) { }
0 107571 elsif ($o == 34) { }
36690 70881 elsif ($o < 91) { }
0 70881 elsif ($o == 92) { }
70706 175 elsif ($o < 126) { }
167 8 elsif ($o < 65535) { }
250 37 1182 unless defined $node
251 54 1128 if &refaddr($self) == &refaddr($node)
252 16 1112 unless &blessed($node) and $node->isa('RDF::Trine::Node::Resource')
281 252 11 if ($uri =~ /$r_PN_LOCAL$/) { }