Branch Coverage

blib/lib/RDF/Trine/Node.pm
Criterion Covered Total %
branch 40 52 76.9


line true false branch
135 0 11147 unless $self->can('sse')
164 0 0 unless &blessed($node)
185 1 2368 unless &blessed($a)
186 0 2368 unless &blessed($b)
194 254 2114 if ($a->type ne $b->type) { }
215 4 2 if ($self->isa('RDF::Trine::Node::Literal')) { }
218 2 2 if $self->has_language
220 0 4 if $self->has_datatype
223 0 2 $self->isa('RDF::Trine::Node::Blank') ? :
224 0 2 $self->isa('RDF::Trine::Node::Blank') ? :
244 5 5 if (my($iri) = /^<([^>]+)>/o) { }
3 2 elsif (my($lit) = /^"(([^"\\]+|\\([\\"nt]))+)"/o) { }
1 1 elsif (my($id1) = /^[(]([^)]+)[)]/) { }
0 1 elsif (my($id2) = /^_:(\S+)/) { }
0 1 elsif (my($v) = /^[?]($r_VARNAME)/) { }
1 0 elsif (my($pn, $ln) = /^(\S*):(\S*)/o) { }
250 1 2 if (my($lang) = /[\@](\S+)/) { }
1 1 elsif (/^\^\^/) { }
270 0 1 if ($pn eq '')
273 1 0 if (my $ns = $context->{'namespaces'}{$pn}) { }
288 6364 581 if ($str =~ /\A[^\\\n\t\r"\x{10000}-\x{10ffff}\x{7f}-\x{ffff}\x{00}-\x{08}\x{0b}-\x{0c}\x{0e}-\x{1f}]*\z/ms) { }
295 2506 6032 if (my($ascii) = $str =~ /^([A-Za-z0-9 \t]+)/) { }
300 77 5955 if ($utf8 eq '\\') { }
366 5589 elsif ($utf8 =~ /^[\x{10000}-\x{10ffff}]$/) { }
924 4665 elsif ($utf8 =~ /^[\x7f-\x{ffff}]$/) { }
604 4061 elsif ($utf8 =~ /^[\x00-\x08\x0b-\x0c\x0e-\x1f]$/) { }