Branch Coverage

blib/lib/RDF/Trine/Parser/TriG.pm
Criterion Covered Total %
branch 34 68 50.0


line true false branch
61 0 0 if ($self->{'canonicalize'} and blessed($obj) and $obj->isa('RDF::Trine::Node::Literal'))
66 31 0 if (my $code = $self->{'handle_triple'})
79 2 21 if ($type == 28) { }
0 21 elsif ($type == 1) { }
0 21 elsif ($type == 13) { }
0 21 elsif ($type == 30) { }
3 18 elsif ($type == 12) { }
4 14 elsif ($type == 11) { }
0 14 elsif ($type == 17) { }
14 0 elsif ($type == 24 or $type == 26) { }
0 0 elsif ($type == 23 or $type == 25) { }
93 14 0 if ($type == 24)
97 0 14 if (my $ns = $self->{'namespaces'})
98 0 0 unless ($ns->namespace_uri($name))
107 0 0 if ($type == 23)
122 7 2 if ($type == 12 or $type == 11) { }
0 2 elsif ($type == 13) { }
0 2 elsif ($type == 1) { }
126 0 7 unless (defined $t)
140 1 8 if ($t->type == 30)
144 0 9 if ($t->type != 28)
151 6 22 unless ($type == 1 or $type == 3 or $type == 12 or $type == 11 or $type == 13)
157 3 23 if ($t->type == 29) { }
23 0 elsif ($t->type == 5) { }
168 3 6 unless defined $t
169 5 1 unless ($t->type == 5)
181 0 26 if ($type == 1) { }
0 26 elsif ($type == 3) { }
0 26 elsif (not $type == 12 || $type == 11 || $type == 13) { }
184 0 0 if ($t->type != 2)
190 0 0 unless defined $t
192 0 0 if ($t->type == 5)
198 0 0 if ($t->type == 4) { }
206 0 0 if ($t->type == 4) { }