Branch Coverage

blib/lib/AtteanX/Parser/Turtle.pm
Criterion Covered Total %
branch 100 164 60.9


line true false branch
118 0 4 unless (ref $fh)
121 0 0 unless open $fh, "<", $filename
156 0 12 unless (ref $self)
194 254 507 if (scalar @{$self->_stack;})
200 33 474 unless $t
213 0 155 unless ($t)
217 0 155 unless ($t->type eq $type)
229 33 53 if ($type == 30 or $type == 19) { }
1 52 elsif ($type == 29 or $type == 2) { }
232 0 33 unless (defined $t->value)
237 33 0 if substr($name, -1) eq ":"
241 1 32 if ($self->has_base)
246 31 2 if ($type == 30)
254 6 27 if ($self->has_namespaces)
256 6 0 unless ($ns->namespace_uri($name))
264 0 1 if ($self->has_base)
269 0 1 if ($type == 29)
293 1 51 if ($type == 32) { }
1 50 elsif ($type == 16) { }
0 50 elsif ($type == 17) { }
0 50 elsif (not $type == 13 || $type == 20 || $type == 3) { }
299 0 1 if ($t->type != 22)
306 0 0 if ($t->type == 23) { }
314 0 0 if ($t->type == 23) { }
329 1 51 if ($bnode_plist) { }
333 1 0 if ($t->type != 8)
349 0 1 unless ($type == 13 or $type == 20 or $type == 1)
366 0 1 if ($type == 32) { }
0 1 elsif ($type == 16) { }
0 1 elsif (not $type == 13 || $type == 20 || $type == 3) { }
386 0 1 if ($type == 32) { }
0 1 elsif ($type == 16) { }
0 1 elsif (not $type == 13 || $type == 20 || $type == 25 || $type == 27 || $type == 26 || $type == 28 || $type == 3 || $type == 12 || $type == 7 || $type == 9 || $type == 4) { }
394 1 0 if ($type == 25 or $type == 27 or $type == 26 or $type == 28) { }
399 1 0 if ($t)
400 0 1 if ($t->type == 11) { }
0 1 elsif ($t->type == 14) { }
402 0 0 if ($t->type == 13 or $t->type == 20)
412 0 1 if defined $lang
413 0 1 if defined $dt
430 1 1 scalar @objects ? :
443 0 68 unless ($type == 13 or $type == 20 or $type == 1)
450 0 85 unless $t
451 29 56 if ($t->type == 24) { }
455 0 29 unless ($t)
458 0 29 if $t->type == 24
459 29 0 if ($t->type == 13 or $t->type == 20 or $t->type == 1) { }
479 0 90 unless $t
484 5 85 if ($t and $t->type == 5) { }
502 89 1 if ($t->type != 33)
516 0 0 if ($self->canonicalize and &blessed($obj) and $obj->does("Attean::API::Literal"))
533 0 104 if ($type == 32) { }
3 101 elsif ($type == 16) { }
1 100 elsif ($type == 17) { }
0 100 elsif (not $type == 13 || $type == 20 || $type == 25 || $type == 27 || $type == 26 || $type == 28 || $type == 3 || $type == 12 || $type == 7 || $type == 9 || $type == 4) { }
538 0 3 unless ($t)
541 3 0 if ($t->type != 22)
548 0 1 unless ($t)
551 0 1 if ($t->type == 23) { }
559 1 1 if ($t->type == 23) { }
570 24 76 if ($type == 25 or $type == 27 or $type == 26 or $type == 28) { }
575 23 1 if ($t)
576 0 23 if ($t->type == 11) { }
4 19 elsif ($t->type == 14) { }
578 0 0 if ($t->type == 13 or $t->type == 20)
588 4 20 if defined $lang
589 0 24 if defined $dt
602 22 191 if ($type eq 1) { }
52 139 elsif ($type eq 13) { }
10 129 elsif ($type eq 12) { }
0 129 elsif ($type eq 7) { }
0 129 elsif ($type eq 9) { }
0 129 elsif ($type eq 4) { }
103 26 elsif ($type eq 20) { }
26 0 elsif ($type eq 3) { }
0 0 elsif ($type eq 25) { }
0 0 elsif ($type eq 26) { }
610 5 47 if ($self->has_base)
617 24 23 if (my $n = $cache{$value}) { }
621 0 23 if (rand() < "0.02")
644 0 103 unless (exists $self->_map->{$ns})
675 0 0 if (defined $t->value)