Branch Coverage

blib/lib/ODO/Parser/NTriples.pm
Criterion Covered Total %
branch 18 40 45.0


line true false branch
60 1 0 unless ref $self
63 1 0 unless UNIVERSAL::isa($rdf, 'ARRAY')
70 0 13 unless $statement
86 1 0 unless ref $self
89 0 1 unless -e $filename
99 0 13 unless $statement
131 0 26 unless $line and not $line =~ /^#/ and not $line =~ /^[\ \t]+$/
133 0 26 unless $line =~ /.*[\ \t]+\.[\ \t]*$/
138 0 26 unless $s and $p and $o
145 0 26 unless UNIVERSAL::isa($s, 'ODO::Node') and UNIVERSAL::isa($p, 'ODO::Node') and UNIVERSAL::isa($o, 'ODO::Node')
153 0 26 unless UNIVERSAL::isa($t, 'ODO::Statement')
167 2 76 if ($node =~ /^_:(\w+|\d+)/) { }
74 2 elsif ($node =~ /^<(.*)>$/) { }
187 2 0 if (($value, $datatype) = split(/^^/, $raw, 3)) { }
0 0 elsif (($value, $language) = split(/@/, $raw, 3)) { }
188 0 2 if ($value =~ /"(.*)"/)
192 0 2 if $datatype
196 0 0 if ($value =~ /"(.*)"/)
200 0 0 if $language
204 0 0 if ($raw =~ /^\w*"(.*)"\w*$/) { }