Branch Coverage

blib/lib/RDF/Trine/Parser/RDFJSON.pm
Criterion Covered Total %
branch 16 30 53.3


line true false branch
76 0 2 if (defined $args{'bnode_prefix'}) { }
99 2 0 &blessed($proto) ? :
101 0 2 if (&blessed($uri) and $uri->isa('RDF::Trine::Node::Resource'))
112 0 4 if ($context) { }
138 0 2 if ($@)
144 1 1 $s =~ /^_:(.*)$/ ? :
154 1 3 unless (ref $O)
155 1 0 if ($O =~ /^_:/) { }
0 0 elsif ($O =~ /^[a-z0-9._\+-]{1,12}:\S+$/i) { }
0 0 elsif ($O =~ /^(.*)\@([a-z]{2})$/) { }
166 2 2 if (lc $O->{'type'} eq 'literal') { }
172 1 1 $O->{'value'} =~ /^_:(.*)$/ ? :
175 4 0 if ($ts and $tp and $to)
176 0 4 if ($self->{'canonicalize'})
177 0 0 if ($to->isa('RDF::Trine::Node::Literal') and $to->has_datatype)