Branch Coverage

blib/lib/RDF/Trine/Serializer/NTriples/Canonical.pm
Criterion Covered Total %
branch 32 42 76.1


line true false branch
131 330 1072 if ($ST->subject->isa('RDF::Trine::Node::Blank'))
135 182 1220 if ($ST->object->isa('RDF::Trine::Node::Blank'))
148 330 1072 $st->{'trine'}->subject->isa('RDF::Trine::Node::Blank') ? :
182 1220 $st->{'trine'}->object->isa('RDF::Trine::Node::Blank') ? :
163 32 1370 unless $lexCounts{$st->{'lex'}} == 1
165 182 1188 if ($st->{'trine'}->object->isa('RDF::Trine::Node::Blank'))
166 128 54 unless (defined $$blankNodes{$st->{'trine'}->object->blank_identifier}{'lex'})
175 298 1072 if ($st->{'trine'}->subject->isa('RDF::Trine::Node::Blank'))
176 118 180 unless (defined $$blankNodes{$st->{'trine'}->subject->blank_identifier}{'lex'})
187 0 1402 if ($st->{'lex'} =~ /\~$/)
188 0 0 if (defined $$blankNodes{$st->{'trine'}->object->blank_identifier}{'lex'})
194 32 1370 if ($st->{'lex'} =~ /^\~/)
195 30 2 if (defined $$blankNodes{$st->{'trine'}->subject->blank_identifier}{'lex'})
207 2 1400 if ($st->{'lex'} =~ /(^\~)|(\~$)/) { }
208 0 2 if (lc $self->{'onfail'} eq 'die') { }
0 2 elsif (lc $self->{'onfail'} eq 'truncate') { }
214 0 2 if ($st->{'lex'} =~ /\~$/)
215 0 0 unless (defined $$blankNodes{$st->{'trine'}->object->blank_identifier}{'lex'})
224 2 0 if ($st->{'lex'} =~ /^\~/)
225 2 0 unless (defined $$blankNodes{$st->{'trine'}->subject->blank_identifier}{'lex'})
246 2 776 if defined $self->{'onfail'} and lc $self->{'onfail'} eq 'space'