Branch Coverage

blib/lib/RDF/Trine/Parser/RDFPatch.pm
Criterion Covered Total %
branch 21 36 58.3


line true false branch
103 0 0 unless (ref $fh)
106 0 0 unless open $fh, '<:encoding(UTF-8)', $filename
113 0 0 unless &blessed($op)
132 0 0 if ($opid eq 'A') { }
155 0 4 unless ($t)
159 0 4 unless ($t->type eq $type)
169 0 11 if $line =~ /^#/
170 1 10 if (substr($line, 0, 7) eq '@prefix')
186 1 9 unless ($op =~ /^[ADQ]$/)
193 2 32 if ($tail =~ /^\s*U\b/) { }
0 32 elsif ($tail =~ /^\s*R\b/) { }
8 24 elsif ($tail =~ /^\s*[.]/) { }
201 0 0 unless (&blessed($node))
218 7 2 if (scalar @nodes == 3) { }
1 1 elsif (scalar @nodes == 4) { }
264 4 3 if ($op eq 'A') { }
2 1 elsif ($op eq 'D') { }
1 0 elsif ($op eq 'Q') { }